Update internal/utils/utils.go

Thanks @inverse !

Co-authored-by: Malachi Soord <inverse.chi@gmail.com>
pull/19/head
Paulo Truta 2022-02-14 21:33:10 +01:00 committed by GitHub
parent 01dc4943b1
commit a33a6f5e84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ func WriteOption(optionKey string, optionValue string) {
// 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 {
_, err := os.Stat("/home/system/components/ws/.ready")
_, err := os.Stat(GetPath("wsPath") + ".ready")
return !os.IsNotExist(err)
}