X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=lib%2Fvserver.in;h=bb1a1528334e80bdd7a181b522912648717950c7;hb=a8e1b31dd44429d26b578a3dda53d4a38c8cef21;hp=3030387a00aa1cca5a4b3272f14b923610bfb84a;hpb=24e4a05362bfd99fde6510bb8698d8eb237fab28;p=matthijs%2Fupstream%2Fbackupninja.git 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 }