From: intrigeri Date: Tue, 17 Jan 2006 22:23:06 +0000 (+0000) Subject: lib/vserver.in [init_vservers] : test in a stricter way the real vservers availability X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=5309070abaddb6c7313afba7bdcc7fb5c11ce994;p=matthijs%2Fupstream%2Fbackupninja.git lib/vserver.in [init_vservers] : test in a stricter way the real vservers availability git-svn-id: http://code.autistici.org/svn/backupninja/trunk@323 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/ChangeLog b/ChangeLog index 4b5e9f7..0037fbb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -29,6 +29,7 @@ version 0.9.3 -- unreleased lib changes vserver: . improved VROOTDIR detection + . test in a stricter way the real vservers availability known bugs: easydialog: . formDisplay does not return exit status. 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."