mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15: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"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
|
"github.com/0xJacky/Nginx-UI/internal/helper"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -33,7 +34,7 @@ func GetRuntimeInfo() (r RuntimeInfo, err error) {
|
||||||
Arch: runtime.GOARCH,
|
Arch: runtime.GOARCH,
|
||||||
ExPath: realPath,
|
ExPath: realPath,
|
||||||
CurVersion: GetVersionInfo(),
|
CurVersion: GetVersionInfo(),
|
||||||
InDocker: os.Getenv("NGINX_UI_IN_DOCKER") == "true",
|
InDocker: helper.InNginxUIOfficialDocker(),
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue