diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-01-07 08:09:20 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-01-07 16:52:12 +0100 |
commit | 4293c48e8507f4869198ddfc888976757269f153 (patch) | |
tree | 9c159f3b57722f1111c2b422cc1e74b6ec81a9d6 /etc | |
parent | 5f78df079659955b67ef374a1dc09e5a22297da0 (diff) | |
download | itzks-systems-4293c48e8507f4869198ddfc888976757269f153.tar.gz itzks-systems-4293c48e8507f4869198ddfc888976757269f153.tar.bz2 itzks-systems-4293c48e8507f4869198ddfc888976757269f153.zip |
etc/cron.d/itzks-systems-common: Improve (but not yet fix) how we discover if being inside a DLW or TC chroot.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/cron.d/itzks-systems-common | 7 |
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 |