mysql,pgsql,svn,sys: fixed failing "is vserver running" test
[matthijs/upstream/backupninja.git] / handlers / sys
index 8054b4a7ebb898b092381399235af2504b75466a..66f1595f12e8e932f414b45986cf830d730beb09 100755 (executable)
@@ -52,7 +52,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"