projects
/
matthijs
/
servers
/
drsnuggles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver: Hashify hosts even when they are not running.
[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 e2df3b907c3e95c7897fa6e84b4bbb5c2697046c..7c038c1c82d9d77564f8dc27d7c0f8ca504c0666 100755
(executable)
--- a/
usr/local/bin/vserver-hashify-all
+++ b/
usr/local/bin/vserver-hashify-all
@@
-5,12
+5,10
@@
VSERVERS_CONF=/etc/vservers
cd $VSERVERS_CONF
for NAME in *; do
cd $VSERVERS_CONF
for NAME in *; do
+ # Check if its config dir exists
if [ ! -d $NAME ]; then
continue;
fi
if [ ! -d $NAME ]; then
continue;
fi
- if ! sudo vserver $NAME status &> /dev/null; then
- continue;
- fi
echo "Hashifying vserver $NAME..."
sudo vserver $NAME hashify
echo "Hashifying vserver $NAME..."
sudo vserver $NAME hashify