vserver: Hashify hosts even when they are not running.
[matthijs/servers/drsnuggles.git] / 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