- Compress the tarball using bzip2 - Move the cron.daily script to a separate source file
10 lines
301 B
Bash
10 lines
301 B
Bash
#! /bin/sh
|
|
/usr/sbin/tmpwatch -x /tmp/.X11-unix -x /tmp/.XIM-unix -x /tmp/.font-unix \
|
|
-x /tmp/.ICE-unix -x /tmp/.Test-unix 10d /tmp
|
|
/usr/sbin/tmpwatch 30d /var/tmp
|
|
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
|
|
if [ -d "$d" ]; then
|
|
/usr/sbin/tmpwatch -f 30d "$d"
|
|
fi
|
|
done
|