Skip to content

Commit

Permalink
Fix other variables in the unattended template
Browse files Browse the repository at this point in the history
  • Loading branch information
medanthelinium committed Sep 9, 2024
1 parent 33b5ed6 commit c64cac0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/apt/apt.conf.d/50unattended-upgrades
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ Unattended-Upgrade::MailOnlyOnError "true";

Unattended-Upgrade::Allowed-Origins {
"${distro_id} ${distro_codename}-security";
{% if not system.unattended_upgrades.security_only %}
{% if not system.unattended_upgrades.config.security_only %}
"${distro_id} ${distro_codename}-updates";
{% endif %}
};

Unattended-Upgrade::Package-Blacklist{
{% for package in system.unattended_upgrades.blacklist %}
{% for package in system.unattended_upgrades.config.blacklist %}
"{{ package }}";
{% endfor %}
}

Unattended-Upgrade::AutoFixInterruptedDpkg "true";

Unattended-Upgrade::Remove-Unused-Dependencies "{{ system.unattended_upgrades.auto_clean | lower }}";
Unattended-Upgrade::Remove-Unused-Dependencies "{{ system.unattended_upgrades.config.auto_clean | lower }}";

0 comments on commit c64cac0

Please sign in to comment.