diff --git a/debian/apt.systemd.daily b/debian/apt.systemd.daily
index 03d41bae5..54a8871ea 100755
--- a/debian/apt.systemd.daily
+++ b/debian/apt.systemd.daily
@@ -384,6 +384,7 @@ if [ $UpdateInterval -eq 0 ] &&
exit 0
fi
+if [ "$1" = "update" -o -z "$1" ] ; then
# deal with BackupArchiveInterval
do_cache_backup $BackupArchiveInterval
@@ -433,7 +434,9 @@ if [ $UPDATED -eq 1 ] && check_stamp $DOWNLOAD_UPGRADEABLE_STAMP $DownloadUpgrad
else
debug_echo "download upgradable (not run)"
fi
+fi
+if [ "$1" = "install" -o -z "$1" ] ; then
# auto upgrade all upgradeable packages
UPGRADE_STAMP=/var/lib/apt/periodic/upgrade-stamp
if which unattended-upgrade >/dev/null 2>&1 && check_stamp $UPGRADE_STAMP $UnattendedUpgradeInterval; then
@@ -475,6 +478,7 @@ fi
# check cache size
check_size_constraints
+fi
#
# vim: set sts=4 ai :