vserver: Hashify hosts even when they are not running.
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 16 Apr 2009 13:15:57 +0000 (15:15 +0200)
committerMatthijs 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

index e2df3b907c3e95c7897fa6e84b4bbb5c2697046c..7c038c1c82d9d77564f8dc27d7c0f8ca504c0666 100755 (executable)
@@ -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