diff options
author | Julian Andres Klode <jak@debian.org> | 2009-08-06 12:33:57 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2009-08-06 12:33:57 +0200 |
commit | 17443d48b60b1abad4d16a2b6a3e3b3199bfa7d3 (patch) | |
tree | 652afa4fb7697545e4993f907d2a189532516708 /debian/apt.cron.daily | |
parent | 6985efb330487fb4ceb3fea0b4bfc86010c6d7f8 (diff) |
debian/apt.cron.daily: Script can be disabled by APT::Periodic::Enable=0 (Closes: #485476)
Diffstat (limited to 'debian/apt.cron.daily')
-rw-r--r-- | debian/apt.cron.daily | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily index 35ee5db6c..3973e63b5 100644 --- a/debian/apt.cron.daily +++ b/debian/apt.cron.daily @@ -14,6 +14,9 @@ # Dir::Cache::Archive "archives/"; # - Set package archive directory # +# APT::Periodic::Enable "1"; +# - Enable the update/upgrade script (0=disable) +# # APT::Periodic::BackupArchiveInterval "0"; # - Backup after n-days if archive contents changed.(0=disable) # @@ -319,6 +322,14 @@ if ! which apt-config >/dev/null ; then exit 0 fi +# check if the user really wants to do something +AutoAptEnable=1 # default is yes +eval $(apt-config shell AutoAptEnable APT::Periodic::Enable) + +if [ AutoAptEnable -eq 0 ]; then + exit 0 +fi + # Set VERBOSE mode from apt-config (or inherit from environment) VERBOSE=0 eval $(apt-config shell VERBOSE APT::Periodic::Verbose) |