From: Matthijs Kooijman Date: Thu, 16 Apr 2009 13:15:57 +0000 (+0200) Subject: vserver: Hashify hosts even when they are not running. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fservers%2Fdrsnuggles.git;a=commitdiff_plain;h=a4bde3f71bdff8105f7aedb20cba896be1c54406 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. --- 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