mirror of https://github.com/jetkvm/kvm.git
fix: set updating flag to false when update is complete
This commit is contained in:
parent
999c8c79b0
commit
b8af39cae9
|
|
@ -253,6 +253,9 @@ func (s *State) doUpdate(ctx context.Context, params UpdateParams) error {
|
||||||
scopedLogger.Info().Msg("System is up to date")
|
scopedLogger.Info().Msg("System is up to date")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s.updating = false
|
||||||
|
s.triggerStateUpdate()
|
||||||
|
|
||||||
if s.rebootNeeded {
|
if s.rebootNeeded {
|
||||||
if appUpdate.customVersionUpdate || systemUpdate.customVersionUpdate {
|
if appUpdate.customVersionUpdate || systemUpdate.customVersionUpdate {
|
||||||
scopedLogger.Info().Msg("disabling auto-update due to custom version update")
|
scopedLogger.Info().Msg("disabling auto-update due to custom version update")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue