summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebian/apt.systemd.daily4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/apt.systemd.daily b/debian/apt.systemd.daily
index 0ecbde219..49af931bd 100755
--- a/debian/apt.systemd.daily
+++ b/debian/apt.systemd.daily
@@ -452,8 +452,8 @@ if [ "$1" = "update" -o -z "$1" ] ; then
debug_echo "download upgradable (not run)"
fi
- if which unattended-upgrade >/dev/null 2>&1 && check_stamp $DOWNLOAD_UPGRADEABLE_STAMP $UnattendedUpgradeInterval; then
- if unattended-upgrade -d $XUUPOPT; then
+ if which unattended-upgrade >/dev/null 2>&1 && unattended-upgrade --help | grep -q download-only && check_stamp $DOWNLOAD_UPGRADEABLE_STAMP $UnattendedUpgradeInterval; then
+ if unattended-upgrade --download-only $XUUPOPT; then
update_stamp $DOWNLOAD_UPGRADEABLE_STAMP
debug_echo "unattended-upgrade -d (success)"
else