vserver: Skip hashify for vservers with vhashify disabled.
[matthijs/servers/drsnuggles.git] / 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