Fixed broken vserver dpkg parsing in sys handler

This commit is contained in:
Micah Anderson 2005-07-19 16:08:39 +00:00
parent 5c7bc95bc1
commit bd2d784c05

View File

@ -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