X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Fsys;h=dd49a3e308af2d834685d85d4e99d75f5177c7ba;hb=c8efb40b7febbdd2aee03996938e6d8c63c06377;hp=8054b4a7ebb898b092381399235af2504b75466a;hpb=88d1f719c580ded553e95cbc125a65bf9362e5a4;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/handlers/sys b/handlers/sys index 8054b4a..dd49a3e 100755 --- a/handlers/sys +++ b/handlers/sys @@ -1,3 +1,4 @@ +# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*- # # this handler will save various reports of vital system information. # by default, all the reports are enabled and are saved in /var/backups. @@ -52,7 +53,7 @@ if [ "$packages" == "yes" ]; then do info "examining vserver: $vserver" running=`$VSERVERINFO $vserver RUNNING` - if [ $running = 1 ]; then + if [ "$running" = "1" ]; then if [ ! -x "$VROOTDIR/$vserver`$VSERVER $vserver exec which dpkg`" ]; then warning "can't find dpkg in vserver $vserver, skipping installed packages report." nodpkg="$nodpkg|$vserver"