aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2006-01-17 22:23:06 +0000
committerintrigeri <intrigeri@boum.org>2006-01-17 22:23:06 +0000
commit04ed966851a3201c8f604b6f2a97539d5eecd110 (patch)
tree4f2af0e43b79f69840ce48dd1300c0bee7057a9e
parent55b02f8536feaebbebc598cfb8a3f1abc08ced1c (diff)
downloadbackupninja-04ed966851a3201c8f604b6f2a97539d5eecd110.tar.gz
backupninja-04ed966851a3201c8f604b6f2a97539d5eecd110.tar.bz2
lib/vserver.in [init_vservers] : test in a stricter way the real vservers availability
-rw-r--r--ChangeLog1
-rw-r--r--lib/vserver.in10
2 files changed, 11 insertions, 0 deletions
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."