Skip to content

Commit

Permalink
unattended-upgrade-shutdown: fix u-u on shutdown, second try
Browse files Browse the repository at this point in the history
  • Loading branch information
kucharskim committed May 3, 2021
1 parent 4ff7744 commit 353af0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unattended-upgrade-shutdown
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ class UnattendedUpgradesShutdown():
if self.on_shutdown_mode is None:
self.on_shutdown_mode = (
not self.options.stop_only
and not self.stop_signal_received.is_set()
and ((self.options.wait_for_signal and self.stop_signal_received.is_set()) or
(not self.options.wait_for_signal and not self.stop_signal_received.is_set()))
and self.apt_pkg_reinit_done
and apt_pkg.config.find_b(
"Unattended-Upgrade::InstallOnShutdown", False))
Expand Down

0 comments on commit 353af0d

Please sign in to comment.