X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=lib%2Fvserver.in;fp=lib%2Fvserver.in;h=7108dac78563aea64ffef4c43e6f040a04d2c261;hb=5309070abaddb6c7313afba7bdcc7fb5c11ce994;hp=6a61afc2dd4419ac9f5a75538990877ff77e8be1;hpb=d16146080469c3c3fe2c0cf2d79b28d438a1cf6e;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/lib/vserver.in b/lib/vserver.in index 6a61afc..7108dac 100644 --- a/lib/vserver.in +++ b/lib/vserver.in @@ -41,6 +41,16 @@ init_vservers() { host_or_vservers=host # check vservers real availability if [ $vservers = yes ]; then + if [ ! -x "$VSERVERINFO" ]; then + `if [ "$arg" = nodialog ]; then echo fatal; else echo "msgBox warning"; fi` \ + "vservers enabled in $conffile, but vserver-info command was not found. Please set the VSERVERINFO configuration variable to its full path." + return + fi + if [ ! -x "$VSERVER" ]; then + `if [ "$arg" = nodialog ]; then echo fatal; else echo "msgBox warning"; fi` \ + "vservers enabled in $conffile, but vserver command was not found. Please set the VSERVER configuration variable to its full path." + return + fi if [ -z "$VROOTDIR" ]; then `if [ "$arg" = nodialog ]; then echo fatal; else echo "msgBox warning"; fi` \ "vservers enabled in $conffile, but VROOTDIR is not set and could not be guessed."