vserver: Skip hashify for vservers with vhashify disabled.
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 16 Apr 2009 13:32:08 +0000 (15:32 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 16 Apr 2009 13:32:08 +0000 (15:32 +0200)
usr/local/bin/vserver-hashify-all

index 5df03c256d99b8ce5ecb86a094233a9b388f5e4e..055cc5101194fd51d0ff35a886e2978f01ce2141 100755 (executable)
@@ -10,6 +10,11 @@ for VDIR in "$VSERVERS_CONF"/*; do
                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