# Configuration for cron-apt. # The cron config is located in /etc/cron.d/cron-apt # This shows the defaults. # # The command used to execute all actions. By default, apt-get is used. # Change this to /usr/bin/aptitude to use aptitude instead, which will # resolve changed Recommends (and Suggests as well, if aptitude is so # configured). You can also set other utilities (especially useful in the # config.d directory) so set some completely different tool. # OBSERVE that this tool is indended for apt-get and tools like aptitude do not # have full support for noninteractive upgrades. You may have to tune options # to not create infinit logfiles for example. # APTCOMMAND=/usr/bin/apt-get # APTCOMMAND=/usr/bin/aptitude # APTCOMMAND=/usr/bin/apt-file # If FILTERCTRLM is "true", then any line containing ^M in the apt-get # output will be filtered from log/mail/console output. This is useful # with aptitude, which does not currently support -qq (very quiet). # This feature is considered exprimental and will not work with # for example MAILON=upgrade. # FILTERCTRLM="false" # A path is needed for this to work. This is the default PATH. # export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin # The random sleep time in seconds. This is used to prevent clients from # accessing the APT sources all at the same time and overwhelming them. # Default is 3600 seconds which means one hour. # RUNSLEEP=3600 # The directory where the actions is stored. # ACTIONDIR="/etc/cron-apt/action.d" # The directory where configuration per action is stored. The message file # must have the same name as the action file. # ACTIONCONFDIR="/etc/cron-apt/config.d" # The directory where messages that will be prepended to the email that is # sent (per action) is stored. The message file must have the same name as # the action file. # MAILMSGDIR="/etc/cron-apt/mailmsg.d" # The directory where messages that will be prepended to text that is # sent (per action) to syslog. The message file must have the same name as # the action file. # SYSLOGMSGDIR="/etc/cron-apt/syslogmsg.d" # The directory where messages that will be prepended to the error message # (per action) is stored. The message file must have the same name as # the action file. # ERRORMSGDIR="/etc/cron-apt/errormsg.d" # The directory where messages that will be prepended to the log (debug) # message (per action) is stored. The message file must have the same name as # the action file. # LOGMSGDIR="/etc/cron-apt/logmsg.d" # The directory where messages that will be prepended to the mail message # (per MAILON type) is stored. The message file must have the same name as # the $MAILON directive. # MAILONMSGSDIR="/etc/cron-apt/mailonmsgs" # The directory where messages that will be prepended to the syslog message # (per SYSLOGON type) is stored. The message file must have the same name as # the $SYSLOGON directive. # SYSLOGONMSGSDIR="/etc/cron-apt/syslogonmsgs" # Value: "" (warn if dotlockfile not installed) # "nowarn" (don't give warning if dotlockfile not installed) # NOLOCKWARN="" # The file that contains error messages. # ERROR="/var/log/cron-apt/error" # The file that contains current run information # when still running the script. # TEMP="/var/log/cron-apt/temp" # The logfile (for debugging). Use syslog for normal logging. # LOG="/var/log/cron-apt/log" # The mail file. # MAIL="/var/log/cron-apt/mail" # The email address to send mail to. # MAILTO="root" # When to send email about the cron-apt results. # Value: error (send mail on error runs) # upgrade (when packages is upgraded) # changes (mail when change in output from an action) # output (send mail when output is generated) # always (always send mail) # (else never send mail) # MAILON="error" # Value: error (syslog on error runs) # upgrade (when packages is upgraded) # changes (syslog when change in output from an action) # output (syslog when output is generated) # always (always syslog) # (else never syslog) # SYSLOGON="upgrade" # Value: error (exit on error only) # (else never exit) # EXITON="error" # Value: verbose (log everything) # always (always log) # upgrade (when packages is upgraded) # changes (log when change in output from an action) # output (log when output is generated) # error (log error runs only) # (else log nothing) # DEBUG="output" # What to do with the diff when *ON=changes. # Value: prepend (prepend to the output) # append (append to the output) # only (only show the diff, not the output itself) # (else do nothing) # DIFFONCHANGES=prepend # General apt options that will be passed to all APTCOMMAND calls. # Use "-o quiet" instead of "-q" for aptitude compatibility. # OPTIONS="-o quiet=1" # You can for example add an alternative sources.list file here. # OPTIONS="-o quiet=1 -o Dir::Etc::SourceList=/etc/apt/security.sources.list" # If you want to allow unauthenticated and untrusted packages add the # following to your options directive. # This will only work with aptitude >= 0.3.5 # The --assume-yes option will answer yes to almost all questions. This # is not very safe, and can fill up your /tmp file system (#316606) due # to an aptitude bug (#332885) which shows if --assume-yes is used and # untrusted packages would be installed. This aptitude bug is fixed in # aptitude 0.3.4. # OPTIONS="-o quiet=1 -o APT::Get::AllowUnauthenticated=true -o aptitude::Cmdline::ignore-trust-violations=yes" # Do not run the command, if there is an error in the previous run (default). # Value: error (do not run if there is an error on last run) # (else always run, remove previous error file and run) # DONTRUN="" # If this file exist cron-apt will silently exit. # REFRAINFILE=/etc/cron-apt/refrain # If this is non-empty, it will be used as the host name in subjects of # generated e-mail messages. If this is empty, the output of uname -n # will be used. # HOSTNAME="" # Ignore lines matching this regexp to determine whether changes occurred # for MAILON="changes". If empty no lines will be ignored. # Suggested value for aptitude: # DIFFIGNORE="^\(Get:[[:digit:]]\+\|Hit\|Ign\|Del\|Fetched\|Freed\|Reading\)[[:space:]]" # Suggested value for apt-get: # DIFFIGNORE="^\(Get:[[:digit:]]\+\|Hit\|Ign)[[:space:]]" # Default: # DIFFIGNORE=""