Fixed broken vserver dpkg parsing in sys handler
authorMicah Anderson <micah@riseup.net>
Tue, 19 Jul 2005 16:08:39 +0000 (16:08 +0000)
committerMicah Anderson <micah@riseup.net>
Tue, 19 Jul 2005 16:08:39 +0000 (16:08 +0000)
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