remove the DAYS_OF_WEEK as we can handle it in cron
This commit is contained in:
parent
314a048289
commit
2de00b16e7
@ -1,15 +1,11 @@
|
||||
# Don't install, just check (valid: yes|no)
|
||||
CHECK_ONLY=no
|
||||
|
||||
# if MAILTO is set, the mail command is used to deliver yum output
|
||||
# if MAILTO is set, the mail command is used to deliver PackageKit output
|
||||
# by default MAILTO is unset, so crond mails the output by itself
|
||||
#MAILTO=root
|
||||
|
||||
# you may set SYSTEMNAME if you want your yum emails tagged differently
|
||||
# you may set SYSTEMNAME if you want your PackageKit emails tagged differently
|
||||
# default is output of hostname command
|
||||
#SYSTEM_NAME=""
|
||||
|
||||
# you may set DAYS_OF_WEEK to the days of the week you want to run
|
||||
# default is every day
|
||||
#DAYS_OF_WEEK="0123456"
|
||||
|
||||
|
@ -14,13 +14,6 @@
|
||||
# set default for SYSTEMNAME
|
||||
[ -z "$SYSTEMNAME" ] && SYSTEMNAME=$(hostname)
|
||||
|
||||
# only run on certain days of the week
|
||||
dow=`date +%w`
|
||||
DAYS_OF_WEEK=${DAYS_OF_WEEK:-0123456}
|
||||
if [ ${DAYS_OF_WEEK/$dow/} == ${DAYS_OF_WEEK} ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
PKTMP=$(mktemp /var/run/packagekit-cron.XXXXXX)
|
||||
|
||||
# wait a random amount of time to avoid hammering the servers
|
||||
|
Loading…
Reference in New Issue
Block a user