sogo/Scripts/tmpwatch
Francis Lachapelle d87c24ccdc Added mindepth parameter to find command in tmpwatch script.
Monotone-Parent: f3b51cf476c6230ef82b433a28fb5b9fc99ecba7
Monotone-Revision: e1db6c4ec1e7a829a4976be2bd87d40d1d0a5d5f

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-12-09T17:05:36
Monotone-Branch: ca.inverse.sogo
2010-12-09 17:05:36 +00:00

7 lines
157 B
Bash

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