aboutsummaryrefslogtreecommitdiff
path: root/lib/vserver.in
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vserver.in')
-rw-r--r--lib/vserver.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/vserver.in b/lib/vserver.in
index 3030387..bb1a152 100644
--- a/lib/vserver.in
+++ b/lib/vserver.in
@@ -64,7 +64,11 @@ init_vservers() {
return
fi
found_vservers=`ls $VROOTDIR | grep -E -v "lost+found|ARCHIVES" | tr "\n" " "`
- [ -n "$found_vservers" ] || return
+ if [ -z "$found_vservers" ]; then
+ `if [ "$arg" = nodialog ]; then echo warning; else echo "msgBox warning"; fi` \
+ "vservers enabled in $conffile, but no vserver was found in $VROOTDIR.";
+ return
+ fi
vservers_are_available=yes
fi
}