From e947f8e68b42bd4a8239df6fc9c70b9edf1de2cf Mon Sep 17 00:00:00 2001 From: KiekerJan Date: Fri, 22 Apr 2022 21:23:11 +0200 Subject: [PATCH] change apt daily timers to only show system software upgrades where user intervention is required --- setup/system.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/setup/system.sh b/setup/system.sh index f50a353f..ef0f4870 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -249,6 +249,25 @@ APT::Periodic::Unattended-Upgrade "1"; APT::Periodic::Verbose "0"; EOF +# Adjust apt update and upgrade timers such that they're always before daily status +# checks and thus never report upgrades unless user intervention is necessary. +if [ ! -d /etc/systemd/system/apt-daily.timer.d ]; then + mkdir /etc/systemd/system/apt-daily.timer.d +fi +cat > /etc/systemd/system/apt-daily.timer.d/override.conf <