r263@crapouille: intrigeri | 2005-12-28 21:19:10 +0100
[matthijs/upstream/backupninja.git] / handlers / sys
index 8054b4a7ebb898b092381399235af2504b75466a..dd49a3e308af2d834685d85d4e99d75f5177c7ba 100755 (executable)
@@ -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"