Disable force downloading when checking for updates

This commit is contained in:
Daniel 2023-10-06 12:11:00 +02:00
parent 7fac37f7e3
commit 4d12f702a9

View file

@ -14,12 +14,12 @@ func registerAPIEndpoints() error {
Write: api.PermitUser,
BelongsTo: module,
ActionFunc: func(_ *api.Request) (msg string, err error) {
if err := TriggerUpdate(true); err != nil {
if err := TriggerUpdate(false); err != nil {
return "", err
}
return "triggered update check", nil
},
Name: "Check for Updates",
Description: "Triggers checking for updates.",
Description: "Checks if new versions are available and downloads and applies them, if automatic updates are enabled.",
})
}