mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-11-13 03:49:47 +01:00
Fix for incorrect base assignment
This commit is contained in:
@@ -201,11 +201,12 @@ func GetEdgeAppStatus(ID string) EdgeAppStatus {
|
|||||||
// - No service running = EdgeApp is off
|
// - No service running = EdgeApp is off
|
||||||
|
|
||||||
runningServices := 0
|
runningServices := 0
|
||||||
status := EdgeAppStatus{-1, "not-installed"}
|
|
||||||
|
status := EdgeAppStatus{0, "off"}
|
||||||
|
|
||||||
if !IsEdgeAppInstalled(ID) {
|
if !IsEdgeAppInstalled(ID) {
|
||||||
|
|
||||||
status = EdgeAppStatus{0, "off"}
|
status = EdgeAppStatus{-1, "not-installed"}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user