aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2006-01-19 21:56:44 +0000
committerintrigeri <intrigeri@boum.org>2006-01-19 21:56:44 +0000
commit96023985bce5fc3186487a08efe1e3b665574ced (patch)
tree9210759697b7d808f8723d63dba1e36ee8c68dc6 /lib
parent49f1d7f86cb8ff5331d866577788346c4ca703bb (diff)
downloadbackupninja-96023985bce5fc3186487a08efe1e3b665574ced.tar.gz
backupninja-96023985bce5fc3186487a08efe1e3b665574ced.tar.bz2
lib/vserver.in[init_vservers]: warn if vservers are enabled but no vserver is found
Diffstat (limited to 'lib')
-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
}