summaryrefslogtreecommitdiff
path: root/etc/cron.d/itzks-systems-common
blob: 37ef787dc6fcb1218e270987c6deb203f7406fea (plain)
1
2
3
4
5
6
7
8
9
10
11
MAILTO=root
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/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