From: micah Date: Tue, 19 Jul 2005 16:08:39 +0000 (+0000) Subject: Fixed broken vserver dpkg parsing in sys handler X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=5f87c8acaca8c73210b7532074c16deecf142ed9;p=matthijs%2Fupstream%2Fbackupninja-vserver.git Fixed broken vserver dpkg parsing in sys handler git-svn-id: http://code.autistici.org/svn/backupninja/trunk@148 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/handlers/sys b/handlers/sys index e095b45..cb0856b 100755 --- a/handlers/sys +++ b/handlers/sys @@ -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