projects
/
matthijs
/
servers
/
drsnuggles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61b1a0d
)
vserver: Skip hashify for vservers with vhashify disabled.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Thu, 16 Apr 2009 13:32:08 +0000
(15:32 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Thu, 16 Apr 2009 13:32:08 +0000
(15:32 +0200)
usr/local/bin/vserver-hashify-all
patch
|
blob
|
history
diff --git
a/usr/local/bin/vserver-hashify-all
b/usr/local/bin/vserver-hashify-all
index 5df03c256d99b8ce5ecb86a094233a9b388f5e4e..055cc5101194fd51d0ff35a886e2978f01ce2141 100755
(executable)
--- a/
usr/local/bin/vserver-hashify-all
+++ b/
usr/local/bin/vserver-hashify-all
@@
-10,6
+10,11
@@
for VDIR in "$VSERVERS_CONF"/*; do
continue;
fi
+ if [ ! -d "$VDIR"/apps/vunify ]; then
+ echo "Skipping vserver $NAME, hashify is disabled"
+ continue
+ fi
+
echo "Hashifying vserver $NAME..."
sudo vserver "$NAME" hashify
done