summaryrefslogtreecommitdiff
path: root/etc/cron.d
diff options
context:
space:
mode:
Diffstat (limited to 'etc/cron.d')
-rw-r--r--etc/cron.d/itzks-systems-common7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/cron.d/itzks-systems-common b/etc/cron.d/itzks-systems-common
index 8c62a5e..37ef787 100644
--- a/etc/cron.d/itzks-systems-common
+++ b/etc/cron.d/itzks-systems-common
@@ -3,6 +3,9 @@ PATH=/usr/bin:/bin:/usr/sbin:/sbin
@reboot root apt-get autoclean 1>/dev/null
+# FIXME: The below detection that tells us if we run inside a DLW (or similar) is not 100% safe.
+# The disklserver also has an ltsp.conf file... This needs to be improved.
+
# make latest package lists available to the user and Icinga
-0 7,11,15 * * * root if [ ! -e /etc/lts.conf ]; then apt-get update 1>/dev/null 2>/dev/null; fi
-15 8 * * * root if [ ! -e /etc/lts.conf ]; then apt-get clean 1>/dev/null 2>/dev/null; fi
+0 7,11,15 * * * root if [ ! -e /etc/ltsp/ltsp.conf ]; then apt-get update 1>/dev/null 2>/dev/null; fi
+15 8 * * * root if [ ! -e /etc/ltsp/ltsp.conf ]; then apt-get clean 1>/dev/null 2>/dev/null; fi