Commits

Andriy Kornatskyy committed 8cbef11

Regular cron jobs for apt-update

Comments (0)

Files changed (2)

+#!/bin/sh 
+ 
+crontabs="apt-update" 
+ 
+for crontab in $crontabs; do 
+    if [ ! -h "/etc/cron.d/$crontab" ]; then 
+        ln -s /usr/local/etc/cron.d/$crontab \
+            /etc/cron.d/$crontab 
+    fi  
+done
+

cron.d/apt-update

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