Fixes to install make command, fixes to local network app url definition, run ws build on start and every 24 hours

This commit is contained in:
Paulo Truta
2023-10-28 18:43:18 +02:00
parent 8bf26a334c
commit 445bc41d0e
4 changed files with 23 additions and 2 deletions
+12
View File
@@ -374,6 +374,7 @@ func ExecuteSchedules(tick int) {
log.Println("Uptime is " + uptime + " seconds (" + system.GetUptimeFormatted() + ")")
log.Println(taskGetStorageDevices())
taskStartWs()
log.Println(taskGetEdgeApps())
}
@@ -423,6 +424,12 @@ func ExecuteSchedules(tick int) {
// Executing every 3600 ticks (1 hour)
}
if tick%86400 == 0 {
// Executing every 86400 ticks (+/1 day)
// Ensuring we run a normal build, setting up avahi domain names fresh in the network
taskStartWs()
}
// Just add a schedule here if you need a custom one (every "tick hour", every "tick day", etc...)
}
@@ -1000,3 +1007,8 @@ func taskSetupCloudOptions() {
fmt.Println("Executing taskSetupCloudOptions")
system.SetupCloudOptions()
}
func taskStartWs() {
fmt.Println("Executing taskStartWs")
system.StartWs()
}