From: intrigeri Date: Thu, 2 Feb 2006 20:28:28 +0000 (+0000) Subject: mysql, pgsql and svn handlers: fixed inversed vsname emptyness test X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=dbd7bc2b3787036994d1f85a14689c811cfb6a31;p=matthijs%2Fupstream%2Fbackupninja.git mysql, pgsql and svn handlers: fixed inversed vsname emptyness test git-svn-id: http://code.autistici.org/svn/backupninja/trunk@364 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/ChangeLog b/ChangeLog index 5c280fd..d7edcbe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ version 0.9.4 -- unreleased + handler changes + mysql, pgsql, svn: fixed inversed vsname emptyness check lib changes vserver: . init_vservers: fixed Debian bug #351083 (improper readlink syntax) diff --git a/handlers/mysql b/handlers/mysql index 0ff9884..ebde4ab 100644 --- a/handlers/mysql +++ b/handlers/mysql @@ -24,7 +24,7 @@ getconf configfile /etc/mysql/debian.cnf local usevserver=no local vroot if [ $vservers_are_available = yes ]; then - if [ ! -z "$vsname" ]; then + if [ -n "$vsname" ]; then # does it exist ? if ! vservers_exist "$vsname" ; then fatal "The vserver given in vsname ($vsname) does not exist." diff --git a/handlers/pgsql b/handlers/pgsql index 2b6f25a..c7197a8 100644 --- a/handlers/pgsql +++ b/handlers/pgsql @@ -15,7 +15,7 @@ localhost=`hostname` local usevserver=no local vroot if [ $vservers_are_available = yes ]; then - if [ -z "$vsname" ]; then + if [ -n "$vsname" ]; then # does it exist ? if ! vservers_exist "$vsname" ; then fatal "The vserver given in vsname ($vsname) does not exist." diff --git a/handlers/svn b/handlers/svn index d43b489..377d71c 100644 --- a/handlers/svn +++ b/handlers/svn @@ -16,7 +16,7 @@ error=0 local usevserver=no local vroot if [ $vservers_are_available = yes ]; then - if [ -z "$vsname" ]; then + if [ -n "$vsname" ]; then # does it exist ? if ! vservers_exist "$vsname" ; then fatal "The vserver given in vsname ($vsname) does not exist."