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:
b821f2d
)
vserver: Hashify hosts even when they are not running.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Thu, 16 Apr 2009 13:15:57 +0000
(15:15 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Thu, 16 Apr 2009 13:15:57 +0000
(15:15 +0200)
Docs say the vserver should be running to call package management, but
we don't use that anyway.
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 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
+ # Check if its config dir exists
if [ ! -d $NAME ]; then
continue;
fi
- if ! sudo vserver $NAME status &> /dev/null; then
- continue;
- fi
echo "Hashifying vserver $NAME..."
sudo vserver $NAME hashify