diff options
author | intrigeri <intrigeri@boum.org> | 2005-11-29 14:18:31 +0000 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2005-11-29 14:18:31 +0000 |
commit | 921babdf413f370acccc5e125a2c37fbdd18afd3 (patch) | |
tree | 617c52c504c2f9f44e0f63cf8e08ecb718020d8b /handlers | |
parent | d5c8686efd9ea9a5c4f8bc8c3566c2e6a0165ace (diff) | |
download | backupninja-921babdf413f370acccc5e125a2c37fbdd18afd3.tar.gz backupninja-921babdf413f370acccc5e125a2c37fbdd18afd3.tar.bz2 |
mysql,pgsql,svn,sys: fixed failing "is vserver running" test
Diffstat (limited to 'handlers')
-rw-r--r-- | handlers/mysql | 2 | ||||
-rw-r--r-- | handlers/pgsql | 2 | ||||
-rw-r--r-- | handlers/svn | 2 | ||||
-rwxr-xr-x | handlers/sys | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/handlers/mysql b/handlers/mysql index 569b0a2..8d59fa4 100644 --- a/handlers/mysql +++ b/handlers/mysql @@ -57,7 +57,7 @@ then [ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'" # is it running ? running=`$VSERVERINFO $vsname RUNNING` - [ $running = 1 ] || fatal "vserver $vsname is not running." + [ "$running" = "1" ] || fatal "vserver $vsname is not running." fi # create backup dirs, the vroot variable will be empty if no vsname was specified diff --git a/handlers/pgsql b/handlers/pgsql index c17caf8..dd1a2ea 100644 --- a/handlers/pgsql +++ b/handlers/pgsql @@ -30,7 +30,7 @@ if [ $usevserver ]; then [ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'" # is it running ? running=`$VSERVERINFO $vsname RUNNING` - if [ $running = 1 ]; then + if [ "$running" = "1" ]; then if [ "$databases" == "all" ]; then [ -x "$vroot`$VSERVER $vsname exec which $PGSQLDUMPALL`" ] || \ fatal "Can't find $PGSQLDUMPALL in vserver $vsname." diff --git a/handlers/svn b/handlers/svn index 9a611c0..4dca225 100644 --- a/handlers/svn +++ b/handlers/svn @@ -32,7 +32,7 @@ then [ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'" # is it running ? running=`$VSERVERINFO $vsname RUNNING` - [ $running = 1 ] || fatal "vserver $vsname is not running." + [ "$running" = "1" ] || fatal "vserver $vsname is not running." fi cd $vroot$src diff --git a/handlers/sys b/handlers/sys index 8054b4a..66f1595 100755 --- a/handlers/sys +++ b/handlers/sys @@ -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" |