]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix regress to handle db_password
authorKern Sibbald <kern@sibbald.com>
Thu, 19 Jun 2008 19:41:03 +0000 (19:41 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 19 Jun 2008 19:41:03 +0000 (19:41 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7184 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/regress-config
regress/scripts/regress-config.in

index 5b589bd68f437a04ab6f52bdafc610bc7bbac84f..60a7ddd6f5faeff68da6ffafb6423766281653fc 100755 (executable)
@@ -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} \
index 401fbfa5ae9b9edf380739c8e6d2da40aaff4898..73e78e86fdbf8935153f0c5debd8e611caab0169 100644 (file)
@@ -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} \