X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=usr%2Flocal%2Fbin%2Fvserver-hashify-all;h=055cc5101194fd51d0ff35a886e2978f01ce2141;hb=11b622b5f8bbfba356c73c250b353cdc499d5ebe;hp=5df03c256d99b8ce5ecb86a094233a9b388f5e4e;hpb=61b1a0dad48afa04e388fa3a3eabf3f2440deedd;p=matthijs%2Fservers%2Fdrsnuggles.git 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