sogo/Scripts/tmpwatch
Francis Lachapelle 6d32af8c82 Fixed tmpwatch script to avoid deleting the spool directory.
Monotone-Parent: 341e6e2a2c5d1fda9e10359bcd2c9a3afa7b8766
Monotone-Revision: 57eac757f7d831fe529b14ff7416da35dd2eeff0

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-01-03T18:32:33
Monotone-Branch: ca.inverse.sogo
2011-01-03 18:32:33 +00:00

7 lines
161 B
Bash

#!/bin/sh
SOGOSPOOL=/var/spool/sogo
/usr/sbin/tmpwatch 24 "$SOGOSPOOL"
find "$SOGOSPOOL" -depth -mindepth 1 -type d -empty -exec /bin/rmdir {} \; 2> /dev/null