Remove postinstall flagged file when removing app

pull/26/merge 1.2.1
Paulo Truta 2024-11-03 03:25:59 +01:00
parent 01f423ee84
commit 80fc8b40cd
1 changed files with 7 additions and 0 deletions

View File

@ -71,6 +71,7 @@ const optionsEnvFilename = "/edgeapp.env"
const authEnvFilename = "/auth.env" const authEnvFilename = "/auth.env"
const runnableFilename = "/.run" const runnableFilename = "/.run"
const appdataFoldername = "/appdata" const appdataFoldername = "/appdata"
const postInstallFilename = "/edgebox-postinstall.done"
const myEdgeAppServiceEnvFilename = "/myedgeapp.env" const myEdgeAppServiceEnvFilename = "/myedgeapp.env"
const defaultContainerOperationSleepTime time.Duration = time.Second * 10 const defaultContainerOperationSleepTime time.Duration = time.Second * 10
@ -384,6 +385,12 @@ func SetEdgeAppNotInstalled(ID string) bool {
log.Println(err) log.Println(err)
} }
err = os.Remove(utils.GetPath(utils.EdgeAppsPath) + ID + postInstallFilename)
if err != nil {
result = false
log.Println(err)
}
buildFrameworkContainers() buildFrameworkContainers()
return result return result