Enable SPN auto download/apply

This commit is contained in:
Natanael Rodriguez Ramos
2025-04-11 12:15:53 +01:00
parent 2e9a125a78
commit 7d33aaff89

View File

@@ -136,6 +136,11 @@ func New(svcCfg *service.ServiceConfig) (*Instance, error) {
if err != nil {
return instance, fmt.Errorf("create updates config: %w", err)
}
//Enable autodownload and autoapply
binaryUpdateConfig.AutoDownload = true
binaryUpdateConfig.AutoApply = true
instance.binaryUpdates, err = updates.New(instance, "Binary Updater", *binaryUpdateConfig)
if err != nil {
return instance, fmt.Errorf("create updates module: %w", err)