From: Kern Sibbald Date: Thu, 19 Jun 2008 19:41:03 +0000 (+0000) Subject: Fix regress to handle db_password X-Git-Tag: Release-3.0.0~1275 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a7f0e1ed3ec6f5c6f095dc15f97d86482fc7af55;p=bacula%2Fbacula Fix regress to handle db_password git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7184 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/regress-config b/regress/scripts/regress-config index 5b589bd68f..60a7ddd6f5 100755 --- a/regress/scripts/regress-config +++ b/regress/scripts/regress-config @@ -4,6 +4,11 @@ # . ${1}/config +if test "x" = "x"; then + PASSWD= +else + PASSWO="--with-db-password=\"\"" +fi CFLAGS="-g -O2 -Wall" \ ./configure \ @@ -21,6 +26,7 @@ CFLAGS="-g -O2 -Wall" \ --with-smtp-host=${SMTP_HOST} \ --with-db-name=regress \ --with-db-user=regress \ + ${PASSWD} \ ${OPENSSL} \ ${TCPWRAPPERS} \ ${WHICHDB} \ diff --git a/regress/scripts/regress-config.in b/regress/scripts/regress-config.in index 401fbfa5ae..73e78e86fd 100644 --- a/regress/scripts/regress-config.in +++ b/regress/scripts/regress-config.in @@ -4,6 +4,11 @@ # . ${1}/config +if test "x@db_password@" = "x"; then + PASSWD= +else + PASSWO="--with-db-password=\"@db_password@\"" +fi CFLAGS="-g -O2 -Wall" \ ./configure \ @@ -21,6 +26,7 @@ CFLAGS="-g -O2 -Wall" \ --with-smtp-host=${SMTP_HOST} \ --with-db-name=@db_name@ \ --with-db-user=@db_user@ \ + ${PASSWD} \ ${OPENSSL} \ ${TCPWRAPPERS} \ ${WHICHDB} \