mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-11-13 03:49:47 +01:00
Fix runnable file check
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user