Fix runnable file check

pull/21/merge
Paulo Truta 2024-04-17 20:48:53 +02:00
parent 4bb343769f
commit 42b1a34ca7
1 changed files with 2 additions and 2 deletions

View File

@ -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
} }