Skip to content
Snippets Groups Projects
Commit 04ed9668 authored by intrigeri's avatar intrigeri
Browse files

lib/vserver.in [init_vservers] : test in a stricter way the real vservers availability

parent 55b02f85
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
......@@ -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."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment