|
@@ -842,7 +842,7 @@ func shouldUpgrade(cfg config.Wrapper, runtimeOptions RuntimeOptions) bool {
|
|
if upgrade.DisabledByCompilation {
|
|
if upgrade.DisabledByCompilation {
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
- if opts := cfg.Options(); opts.AutoUpgradeIntervalH < 0 {
|
|
|
|
|
|
+ if !cfg.Options().ShouldAutoUpgrade() {
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
if runtimeOptions.NoUpgrade {
|
|
if runtimeOptions.NoUpgrade {
|