|
|
@@ -31,8 +31,8 @@ var (
|
|
|
WifiNetworks []string
|
|
|
HttpOpen = false
|
|
|
UploadSecret string
|
|
|
- checkInterval = 5 * time.Minute
|
|
|
- stagingMode = os.Getenv("ENVIRONMENT")
|
|
|
+ checkInterval = 5 * time.Minute
|
|
|
+ stagingMode = os.Getenv("ENVIRONMENT")
|
|
|
confMutex sync.Mutex
|
|
|
versMutex sync.Mutex
|
|
|
)
|
|
|
@@ -50,7 +50,7 @@ func init() {
|
|
|
BasePath = "/opt/nativeplanet/groundseg"
|
|
|
}
|
|
|
}
|
|
|
- pathMsg := fmt.Sprintf("Loading configs from %s",BasePath)
|
|
|
+ pathMsg := fmt.Sprintf("Loading configs from %s", BasePath)
|
|
|
logger.Info(pathMsg)
|
|
|
confPath := filepath.Join(BasePath, "settings", "system.json")
|
|
|
file, err := os.Open(confPath)
|
|
|
@@ -278,4 +278,4 @@ func CheckVersionLoop() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|