(no commit message)
[matthijs/upstream/backupninja.git] / handlers / sys
index bc117c406d899039039ffb3952114c38bd4d86b1..cb0856bd2b02a5eee728714247f1cd7544be835c 100755 (executable)
@@ -46,10 +46,13 @@ fi
 if [ "$packages" == "yes" ]; then
        if [ $usevserver ]
        then
-               for vserver in `ls $VROOTDIR |grep -v lost+found`
+               nodpkg="lost+found"
+               info "vserver root directory set to: $VROOTDIR"
+               for vserver in `ls $VROOTDIR |grep -v $nodpkg`
                do
+                       info "examining vserver: $vserver"
                        running=`vserver-info $vserver RUNNING`
-                       if [ $running = 1]; then
+                       if [ $running = 1 ]; then
                            if [ ! -x "`$VSERVER $vserver exec which dpkg`" ]; then
                                warning "can't find dpkg in vserver $vserver, skipping installed packages report."
                                nodpkg="$nodpkg $vserver"