Fixed broken vserver dpkg parsing in sys handler
authormicah <micah@758a04ac-41e6-0310-8a23-8373a73cc35d>
Tue, 19 Jul 2005 16:08:39 +0000 (16:08 +0000)
committermicah <micah@758a04ac-41e6-0310-8a23-8373a73cc35d>
Tue, 19 Jul 2005 16:08:39 +0000 (16:08 +0000)
git-svn-id: http://code.autistici.org/svn/backupninja/trunk@148 758a04ac-41e6-0310-8a23-8373a73cc35d

handlers/sys

index e095b45f1958392bcdce7745483f8e0e738c47f3..cb0856bd2b02a5eee728714247f1cd7544be835c 100755 (executable)
@@ -46,8 +46,11 @@ 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 [ ! -x "`$VSERVER $vserver exec which dpkg`" ]; then