[med-svn] r2022 - trunk/packages/emboss-explorer/trunk/debian

hanska-guest at alioth.debian.org hanska-guest at alioth.debian.org
Wed Jun 11 07:37:07 UTC 2008


Author: hanska-guest
Date: 2008-06-11 07:37:06 +0000 (Wed, 11 Jun 2008)
New Revision: 2022

Added:
   trunk/packages/emboss-explorer/trunk/debian/do_cleanup.sh
Log:
Adding do_cleanup.sh -- forgot it, sorry!
Date: 2007-09-28 19:59:18

Added: trunk/packages/emboss-explorer/trunk/debian/do_cleanup.sh
===================================================================
--- trunk/packages/emboss-explorer/trunk/debian/do_cleanup.sh	                        (rev 0)
+++ trunk/packages/emboss-explorer/trunk/debian/do_cleanup.sh	2008-06-11 07:37:06 UTC (rev 2022)
@@ -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


Property changes on: trunk/packages/emboss-explorer/trunk/debian/do_cleanup.sh
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native




More information about the debian-med-commit mailing list