projects
/
webpac2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2711a3d
)
cleanup var cache for single database
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 2 Aug 2008 15:15:04 +0000
(15:15 +0000)
committer
Dobrica 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]
patch
|
blob
diff --git a/scripts/cleanup-var.sh
b/scripts/cleanup-var.sh
new file mode 100755
(executable)
index 0000000..
5bd707d
--- /dev/null
+++ b/
scripts/cleanup-var.sh
@@ -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 {}"