X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Fsys;h=cb0856bd2b02a5eee728714247f1cd7544be835c;hb=bd2d784c05df8a751aaad57af7436be69c1a47d4;hp=bc117c406d899039039ffb3952114c38bd4d86b1;hpb=5cc6f5e5f0531c3905cfdc8c9d3b8c50632baecf;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/handlers/sys b/handlers/sys index bc117c4..cb0856b 100755 --- a/handlers/sys +++ b/handlers/sys @@ -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"