From 04ed966851a3201c8f604b6f2a97539d5eecd110 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Tue, 17 Jan 2006 22:23:06 +0000 Subject: lib/vserver.in [init_vservers] : test in a stricter way the real vservers availability --- lib/vserver.in | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/vserver.in') 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." -- cgit v1.2.3