projects
/
matthijs
/
servers
/
drsnuggles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vuurmuur: Add separators to the rule config.
[matthijs/servers/drsnuggles.git]
/
usr
/
local
/
bin
/
vserver-hashify-all
diff --git
a/usr/local/bin/vserver-hashify-all
b/usr/local/bin/vserver-hashify-all
index 763cfbfb489e25142c7171c30f72eda57a47077f..055cc5101194fd51d0ff35a886e2978f01ce2141 100755
(executable)
--- a/
usr/local/bin/vserver-hashify-all
+++ b/
usr/local/bin/vserver-hashify-all
@@
-3,13
+3,18
@@
# The dir containing vserver configuration
VSERVERS_CONF="/etc/vservers"
# The dir containing vserver configuration
VSERVERS_CONF="/etc/vservers"
-for VDIR in
$VSERVERS_CONF
/*; do
+for VDIR in
"$VSERVERS_CONF"
/*; do
NAME=`basename $VDIR`
NAME=`basename $VDIR`
- # Check if its
config dir exists
+ # Check if its
a config dir
if [ ! -d "$VDIR" ]; then
continue;
fi
if [ ! -d "$VDIR" ]; then
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
echo "Hashifying vserver $NAME..."
sudo vserver "$NAME" hashify
done