mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
fix(ota): determine if running in official Docker environment
This commit is contained in:
parent
1330888280
commit
b2ffe9ccb0
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
"path/filepath"
|
||||
"runtime"
|
||||
|
||||
"github.com/0xJacky/Nginx-UI/internal/helper"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
@ -33,7 +34,7 @@ func GetRuntimeInfo() (r RuntimeInfo, err error) {
|
|||
Arch: runtime.GOARCH,
|
||||
ExPath: realPath,
|
||||
CurVersion: GetVersionInfo(),
|
||||
InDocker: os.Getenv("NGINX_UI_IN_DOCKER") == "true",
|
||||
InDocker: helper.InNginxUIOfficialDocker(),
|
||||
}
|
||||
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue