From a33a6f5e84bffdc8bcfb76a0d00f9604aeec67f9 Mon Sep 17 00:00:00 2001 From: Paulo Truta Date: Mon, 14 Feb 2022 21:33:10 +0100 Subject: [PATCH] Update internal/utils/utils.go Thanks @inverse ! Co-authored-by: Malachi Soord --- internal/utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/utils/utils.go b/internal/utils/utils.go index 6ede10d..fc6ce85 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -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) }