Skip to content

Commit b2ffe9c

Browse files
committed
fix(ota): determine if running in official Docker environment
1 parent 1330888 commit b2ffe9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/version/info.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"path/filepath"
66
"runtime"
77

8+
"github.com/0xJacky/Nginx-UI/internal/helper"
89
"github.com/pkg/errors"
910
)
1011

@@ -33,7 +34,7 @@ func GetRuntimeInfo() (r RuntimeInfo, err error) {
3334
Arch: runtime.GOARCH,
3435
ExPath: realPath,
3536
CurVersion: GetVersionInfo(),
36-
InDocker: os.Getenv("NGINX_UI_IN_DOCKER") == "true",
37+
InDocker: helper.InNginxUIOfficialDocker(),
3738
}
3839

3940
return

0 commit comments

Comments
 (0)