mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-09-25 06:13:03 +02:00
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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user