mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-09-25 14:20:56 +02:00
GetPath improvements (#20)
* Use named variables for getting path Fixed bug with env var * Fix test * Use utils to get paths
This commit is contained in:
@@ -99,7 +99,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)
|
||||
func isSystemReady() bool {
|
||||
_, err := os.Stat("/home/system/components/ws/.ready")
|
||||
_, err := os.Stat(utils.GetPath(utils.WsPath) + ".ready")
|
||||
return !os.IsNotExist(err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user