Skip to content
This repository has been archived by the owner on Jun 25, 2023. It is now read-only.

Commit

Permalink
Use minimal steps by default
Browse files Browse the repository at this point in the history
unattended-upgrades made this switch as of version 0.95.

Also fixes the ability to override the default.
  • Loading branch information
dnrce authored and jnv committed Jan 20, 2020
1 parent 928eed6 commit 909b345
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ On some hosts you may find that the unattended-upgrade's cronfile `/etc/cron.dai
* `unattended_autofix_interrupted_dpkg`: whether on unclean dpkg exit to run `dpkg --force-confold --configure -a`
* Default: `true`
* `unattended_minimal_steps`: split the upgrade into the smallest possible chunks so that they can be interrupted with SIGUSR1.
* Default: `false`
* Default: `true`
* `unattended_install_on_shutdown`: install all unattended-upgrades when the machine is shuting down.
* Default: `false`
* `unattended_mail`: e-mail address to send information about upgrades or problems with unattended upgrades
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ unattended_autofix_interrupted_dpkg: true
# they can be interrupted with SIGUSR1. This makes the upgrade
# a bit slower but it has the benefit that shutdown while a upgrade
# is running is possible (with a small delay)
unattended_minimal_steps: false
unattended_minimal_steps: true

#Unattended-Upgrade::InstallOnShutdown
# Install all unattended-upgrades when the machine is shuting down
Expand Down
4 changes: 1 addition & 3 deletions templates/unattended-upgrades.j2
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ Unattended-Upgrade::Package-Blacklist {
Unattended-Upgrade::AutoFixInterruptedDpkg "false";
{% endif %}

{% if unattended_minimal_steps %}
// Split the upgrade into the smallest possible chunks so that
// they can be interrupted with SIGUSR1. This makes the upgrade
// a bit slower but it has the benefit that shutdown while a upgrade
// is running is possible (with a small delay)
Unattended-Upgrade::MinimalSteps "true";
{% endif %}
Unattended-Upgrade::MinimalSteps "{{ unattended_minimal_steps | lower }}";

{% if unattended_install_on_shutdown %}
// Install all unattended-upgrades when the machine is shuting down
Expand Down

0 comments on commit 909b345

Please sign in to comment.