X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=usr%2Flocal%2Fbin%2Fvserver-hashify-all;h=7c038c1c82d9d77564f8dc27d7c0f8ca504c0666;hb=a4bde3f71bdff8105f7aedb20cba896be1c54406;hp=e2df3b907c3e95c7897fa6e84b4bbb5c2697046c;hpb=815cae63c73a82e81f0b6193d0ddc756e9fa7b8f;p=matthijs%2Fservers%2Fdrsnuggles.git 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