Commits

Andriy Kornatskyy committed 4f82977

Added apt-upgrade cron schedule; updated apply-cron

  • Participants
  • Parent commits 2a293b0

Comments (0)

Files changed (2)

     apt-get -y install cron
 fi
  
-crontabs="apt-update" 
+crontabs="apt-update apt-upgrade" 
  
 for crontab in $crontabs; do 
     if [ ! -h "/etc/cron.d/$crontab" ]; then 

File cron.d/apt-upgrade

+#
+# Regular cron jobs for apt-update
+#
+SHELL=/bin/sh
+PATH=/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin
+LOG=/dev/null
+
+# Run on Mon at 2:05 AM
+# m h dom mon dow user  command
+05 2 * * 1 root test -x /usr/local/sbin/apt-upgrade && apt-upgrade > $LOG
+