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:
James Read 2024-06-04 19:37:59 +01:00 committed by GitHub
parent 362a97c59e
commit e36fedf4b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View File

@ -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.
#

View File

@ -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

View File

@ -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
}