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
This commit is contained in:
parent
362a97c59e
commit
e36fedf4b2
|
|
@ -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.
|
||||
#
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue