lib/vserver.in[init_vservers]: warn if vservers are enabled but no vserver is found
[matthijs/upstream/backupninja.git] / lib / vserver.in
index 3030387a00aa1cca5a4b3272f14b923610bfb84a..bb1a1528334e80bdd7a181b522912648717950c7 100644 (file)
@@ -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
 }