From 11b622b5f8bbfba356c73c250b353cdc499d5ebe Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 16 Apr 2009 15:32:08 +0200 Subject: [PATCH 1/1] vserver: Skip hashify for vservers with vhashify disabled. --- usr/local/bin/vserver-hashify-all | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.30.2