From 85a9589d656ed4b2e72e5bca2d0dc4fd62f95850 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Mon, 29 Dec 2008 15:34:45 +0000 Subject: [PATCH] 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 --- Scripts/tmpwatch | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Scripts/tmpwatch diff --git a/Scripts/tmpwatch b/Scripts/tmpwatch new file mode 100644 index 000000000..826b4313d --- /dev/null +++ b/Scripts/tmpwatch @@ -0,0 +1,6 @@ +#!/bin/sh + +SOGOSPOOL=/var/spool/sogo + +/usr/sbin/tmpwatch 24 "$SOGOSPOOL" +find "$SOGOSPOOL" -type d -empty -exec /bin/rmdir -p {} \; 2> /dev/null