Check for .ready file in ws directory

loop_loop_execution
Paulo Truta 2021-02-13 21:52:08 +01:00
parent 47df72777b
commit c3d283c243
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ func printDbDetails() {
// IsSystemReady : Checks hability of the service to execute commands (Only after "edgebox --build" is ran at least once via SSH, or if built for distribution) // IsSystemReady : Checks hability of the service to execute commands (Only after "edgebox --build" is ran at least once via SSH, or if built for distribution)
func isSystemReady() bool { func isSystemReady() bool {
_, err := os.Stat("/home/system/components/ws") _, err := os.Stat("/home/system/components/ws/.ready")
return !os.IsNotExist(err) return !os.IsNotExist(err)
} }