4 Commits
Author SHA1 Message Date
dependabot[bot] 61992d764a Merge fc6c5c65c8 into b11034dd17 2024-12-05 10:37:42 +01:00
Paulo Truta b11034dd17 Shell timeout log only every 10 seconds 2024-11-04 13:36:52 +01:00
Paulo Truta 80fc8b40cd Remove postinstall flagged file when removing app 2024-11-03 03:25:59 +01:00
dependabot[bot] fc6c5c65c8 Bump actions/setup-go from 4 to 5
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-12-11 05:15:23 +00:00
3 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with: with:
go-version: '1.20.2' go-version: '1.20.2'
- name: Check out code - name: Check out code
+7
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
+3 -1
View File
@@ -1077,7 +1077,9 @@ func taskStartShell(args taskStartShellArgs) string {
utils.WriteOption("SHELL_STATUS", "not_running") utils.WriteOption("SHELL_STATUS", "not_running")
break break
} }
fmt.Println("Active Shell Timeout is " + fmt.Sprint(timeout) + " seconds") if timeout%10 == 0 {
fmt.Println("Active Shell Timeout is " + fmt.Sprint(timeout) + " seconds")
}
time.Sleep(1 * time.Second) time.Sleep(1 * time.Second)
} }
}() }()