From 4293c48e8507f4869198ddfc888976757269f153 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 7 Jan 2022 08:09:20 +0100 Subject: etc/cron.d/itzks-systems-common: Improve (but not yet fix) how we discover if being inside a DLW or TC chroot. --- etc/cron.d/itzks-systems-common | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'etc/cron.d/itzks-systems-common') 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 -- cgit v1.2.3