From 3df3b6f7e0af1774e73eafd1c1798e432ab8ba96 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 6 Jun 2025 16:22:31 +0200 Subject: [PATCH] feat: improved auto update condition --- templates/apt/conf.d/50unattended-upgrades.Debian.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/apt/conf.d/50unattended-upgrades.Debian.j2 b/templates/apt/conf.d/50unattended-upgrades.Debian.j2 index 23e4852..d111cb7 100644 --- a/templates/apt/conf.d/50unattended-upgrades.Debian.j2 +++ b/templates/apt/conf.d/50unattended-upgrades.Debian.j2 @@ -40,10 +40,12 @@ Unattended-Upgrade::Remove-Unused-Kernel-Packages "{{ apt_remove_unused_kernel_p Unattended-Upgrade::Remove-New-Unused-Dependencies "{{ apt_remove_new_unused_dependancies | default('true') }}"; Unattended-Upgrade::Remove-Unused-Dependencies "{{ apt_remove_unused_dependancies | default('true') }}"; +{% if apt_automatic_reboot %} # auto reboot Unattended-Upgrade::Automatic-Reboot "{{ apt_automatic_reboot }}"; Unattended-Upgrade::Automatic-Reboot-WithUsers "{{ apt_automatic_reboot_with_users | default('true') }}"; Unattended-Upgrade::Automatic-Reboot-Time "{{ apt_automatic_reboot_time }}"; +{% endif %} # syslog Unattended-Upgrade::SyslogEnable "{{ apt_syslog_enable | default('true') }}";