ソースを参照

Check for updates default disabled (#333)

* feature: Checking for updates is now disabled by default (#93)

* feature: Default config has checkForUpdates: false (it defaults to false anyway) to make people aware of the update checking feature
James Read 2 年 前
コミット
e36fedf4b2
3 ファイル変更5 行追加2 行削除
  1. 3 0
      config.yaml
  2. 1 1
      internal/config/config.go
  3. 1 1
      internal/updatecheck/updateCheck.go

+ 3 - 0
config.yaml

@@ -9,6 +9,9 @@ listenAddressSingleHTTPFrontend: 0.0.0.0:1337
 # Choose from INFO (default), WARN and DEBUG
 logLevel: "INFO"
 
+# Checking for updates https://docs.olivetin.app/update-checks.html
+checkForUpdates: false
+
 # Actions are commands that are executed by OliveTin, and normally show up as
 # buttons on the WebUI.
 #

+ 1 - 1
internal/config/config.go

@@ -163,7 +163,7 @@ func DefaultConfig() *Config {
 	config.ListenAddressPrometheus = "localhost:1341"
 	config.ExternalRestAddress = "."
 	config.LogLevel = "INFO"
-	config.CheckForUpdates = true
+	config.CheckForUpdates = false
 	config.DefaultPermissions.Exec = true
 	config.DefaultPermissions.View = true
 	config.DefaultPermissions.Logs = true

+ 1 - 1
internal/updatecheck/updateCheck.go

@@ -22,7 +22,7 @@ type versionMapType struct {
 func StartUpdateChecker(cfg *config.Config) {
 	if !cfg.CheckForUpdates {
 		installationinfo.Runtime.AvailableVersion = "none"
-		log.Warn("Update checking is disabled")
+		log.Infof("Update checking is disabled")
 		return
 	}