[Pkg-emboss-commits] r110 - emboss-explorer/trunk/debian
hanska-guest at alioth.debian.org
hanska-guest at alioth.debian.org
Fri Sep 28 17:59:19 UTC 2007
Author: hanska-guest
Date: 2007-09-28 17:59:18 +0000 (Fri, 28 Sep 2007)
New Revision: 110
Added:
emboss-explorer/trunk/debian/do_cleanup.sh
Log:
Adding do_cleanup.sh -- forgot it, sorry!
Added: emboss-explorer/trunk/debian/do_cleanup.sh
===================================================================
--- emboss-explorer/trunk/debian/do_cleanup.sh (rev 0)
+++ emboss-explorer/trunk/debian/do_cleanup.sh 2007-09-28 17:59:18 UTC (rev 110)
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# Script to gracefully handle the case when
+# emboss-explorer is removed but not purged:
+# the crontab will fail because it can't
+# find $OUT_DIR
+#
+# Closes: #435991
+#
+# Copyleft 2007, David Paleino <d.paleino at gmail.com>
+# You may do whatever you want with this silly piece
+# of code.
+
+OUT_DIR=/var/www/emboss-explorer/output
+
+if [ -d "$OUT_DIR" ]
+then
+ find $OUT_DIR -mindepth 1 -maxdepth 1 -atime 1 -exec rm -rf {} \;
+done
More information about the Pkg-emboss-commits
mailing list