From a4bde3f71bdff8105f7aedb20cba896be1c54406 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 16 Apr 2009 15:15:57 +0200 Subject: [PATCH] vserver: Hashify hosts even when they are not running. Docs say the vserver should be running to call package management, but we don't use that anyway. --- usr/local/bin/vserver-hashify-all | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr/local/bin/vserver-hashify-all b/usr/local/bin/vserver-hashify-all index e2df3b9..7c038c1 100755 --- a/usr/local/bin/vserver-hashify-all +++ b/usr/local/bin/vserver-hashify-all @@ -5,12 +5,10 @@ VSERVERS_CONF=/etc/vservers cd $VSERVERS_CONF for NAME in *; do + # Check if its config dir exists if [ ! -d $NAME ]; then continue; fi - if ! sudo vserver $NAME status &> /dev/null; then - continue; - fi echo "Hashifying vserver $NAME..." sudo vserver $NAME hashify -- 2.30.2