mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
fix(boot): do not clean up temp container if not in docker
This commit is contained in:
parent
02da74a5a1
commit
5b8b3d17c2
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,7 @@ import (
|
|||
"github.com/0xJacky/Nginx-UI/internal/cluster"
|
||||
"github.com/0xJacky/Nginx-UI/internal/cron"
|
||||
"github.com/0xJacky/Nginx-UI/internal/docker"
|
||||
"github.com/0xJacky/Nginx-UI/internal/helper"
|
||||
"github.com/0xJacky/Nginx-UI/internal/mcp"
|
||||
"github.com/0xJacky/Nginx-UI/internal/passkey"
|
||||
"github.com/0xJacky/Nginx-UI/internal/validation"
|
||||
|
@ -136,6 +137,9 @@ func InitJsExtensionType() {
|
|||
|
||||
// CheckAndCleanupOTAContainers Check and cleanup OTA update temporary containers
|
||||
func CheckAndCleanupOTAContainers() {
|
||||
if !helper.InNginxUIOfficialDocker() {
|
||||
return
|
||||
}
|
||||
// Execute the third step cleanup operation at startup
|
||||
err := docker.UpgradeStepThree()
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue