+# -*- 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.
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"