diff options
-rw-r--r-- | debian/apt.systemd.daily | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/apt.systemd.daily b/debian/apt.systemd.daily index 54a8871ea..a8d98494b 100644 --- a/debian/apt.systemd.daily +++ b/debian/apt.systemd.daily @@ -434,6 +434,17 @@ if [ "$1" = "update" -o -z "$1" ] ; then else 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 + update_stamp $DOWNLOAD_UPGRADEABLE_STAMP + debug_echo "unattended-upgrade -d (success)" + else + debug_echo "unattended-upgrade -d (error)" + fi + else + debug_echo "unattended-upgrade -d (not run)" + fi fi if [ "$1" = "install" -o -z "$1" ] ; then |