Fix runnable file check
parent
4bb343769f
commit
42b1a34ca7
|
@ -419,8 +419,8 @@ func GetEdgeAppServices(ID string) []EdgeAppService {
|
||||||
shouldBeRunning := false
|
shouldBeRunning := false
|
||||||
isRunning := false
|
isRunning := false
|
||||||
|
|
||||||
// Check if the service is marked as "runnable" with the .run lockfile in the app folder
|
// Is service "runnable" when .run lockfile in the app folder
|
||||||
_, err := os.Stat(utils.GetPath(utils.EdgeAppsPath) + ID + "/" + serviceID + runnableFilename)
|
_, err := os.Stat(utils.GetPath(utils.EdgeAppsPath) + ID + runnableFilename)
|
||||||
if !os.IsNotExist(err) {
|
if !os.IsNotExist(err) {
|
||||||
shouldBeRunning = true
|
shouldBeRunning = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue