From: Matthijs Kooijman Date: Thu, 16 Apr 2009 13:32:08 +0000 (+0200) Subject: vserver: Skip hashify for vservers with vhashify disabled. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=11b622b5f8bbfba356c73c250b353cdc499d5ebe;p=matthijs%2Fservers%2Fdrsnuggles.git vserver: Skip hashify for vservers with vhashify disabled. --- diff --git a/usr/local/bin/vserver-hashify-all b/usr/local/bin/vserver-hashify-all index 5df03c2..055cc51 100755 --- a/usr/local/bin/vserver-hashify-all +++ b/usr/local/bin/vserver-hashify-all @@ -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