aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/vserver.in10
1 files changed, 10 insertions, 0 deletions
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."