X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Fsys;h=94f76cf369c9016c555c3c52544607dc4551dad5;hb=40a106a0f2ddddba622bd7206a51a76c09e7ad01;hp=8054b4a7ebb898b092381399235af2504b75466a;hpb=70ba2a25be781bb6ff105ca2a0aeb9db69fefc1e;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/handlers/sys b/handlers/sys index 8054b4a..94f76cf 100755 --- a/handlers/sys +++ b/handlers/sys @@ -1,3 +1,4 @@ +# -*- mode: sh; sh-basic-offset: 8; 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"