sogo/Scripts/tmpwatch
Ludovic Marcotte 85a9589d65 Added a tmpwatch script that will eventually be part of the installation process
Monotone-Parent: 04df0eebf5080524a4b02c414640106afe5e4ca3
Monotone-Revision: 34b0098e2e34111ae63e0f056fceabfd7cb1362e

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2008-12-29T15:34:45
Monotone-Branch: ca.inverse.sogo
2008-12-29 15:34:45 +00:00

7 lines
145 B
Bash

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