X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Fldap.in;h=6197183162ae413d89d96eedec1fdc5d491ce8bd;hb=ac915b2a77c0bcbcacc8b07042c7d3d2eeebb79a;hp=d929252d0b021ec0698a47fa4e6302693cd9f46a;hpb=fc4d3185e41742984adc39a22f53ee1c96ff1e86;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/handlers/ldap.in b/handlers/ldap.in index d929252..6197183 100644 --- a/handlers/ldap.in +++ b/handlers/ldap.in @@ -26,7 +26,7 @@ fi ### VServers # If vservers are configured, check that the ones listed in $vsnames do exist. local usevserver=no -if [ $vservers_are_available = yes ]; then +if [ $vservers_are_available = yes -a -n "$vsnames" ]; then if [ "$vsnames" = all ]; then vsnames="$found_vservers" else @@ -51,6 +51,10 @@ function make_backup() { vdir="" vexec="" else + if ! vservers_running "$vsname"; then + error "vserver $vsname is not running!" + return 1 + fi info "Running on vserver $vsname" vdir="$VROOTDIR/$vsname" vexec="$VSERVER $vsname exec"