Ubuntu Pastebin

Paste from None at Wed, 26 Apr 2017 18:00:52 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 :
Download as text