瀏覽代碼

hardcode real base path

reid 2 年之前
父節點
當前提交
172ae5d40c
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      config/config.go

+ 1 - 2
config/config.go

@@ -17,7 +17,7 @@ import (
 var (
 	globalConfig       structs.SysConfig
 	logger             = slog.New(slog.NewJSONHandler(os.Stdout, nil))
-	BasePath           string
+	BasePath           = "/opt/nativeplanet/groundseg"
 	Version            = "v2.0.0"
 	Ready              = false
 	VersionServerReady = false
@@ -31,7 +31,6 @@ var (
 	WifiNetworks       []string
 	HttpOpen           = false
 	UploadSecret       string
-	BasePath 		   = "/opt/nativeplanet/groundseg"
 	checkInterval      = 5 * time.Minute
 	confMutex          sync.Mutex
 	versMutex          sync.Mutex