cleanup var cache for single database
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 2 Aug 2008 15:15:04 +0000 (15:15 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 2 Aug 2008 15:15:04 +0000 (15:15 +0000)
git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@1099 07558da8-63fa-0310-ba24-9fe276d99e06

scripts/cleanup-var.sh [new file with mode: 0755]

diff --git a/scripts/cleanup-var.sh b/scripts/cleanup-var.sh
new file mode 100755 (executable)
index 0000000..5bd707d
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+db=$1
+
+if [ -z "$db" ] ; then
+       echo "usage: $0 database_name"
+       exit
+fi
+
+
+ls -d var/*/$db | xargs -i sh -c "echo cleanup {} ; rm -Rf {}"