From 3cff27e34ed98842d494c7ba4ac4215657278bef Mon Sep 17 00:00:00 2001 From: David Knoll Date: Mon, 29 Sep 2014 12:51:45 +0100 Subject: [PATCH] Added command-line switches to PHP in setup.sh to provide the DB credentials as defaults for mysql_real_escape_string --- bin/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/setup.sh b/bin/setup.sh index 989e33b5d7..b44f455c0f 100755 --- a/bin/setup.sh +++ b/bin/setup.sh @@ -51,7 +51,7 @@ fi # checkout, not packaged code if [ -d "$CALLEDPATH/../xml" ]; then cd "$CALLEDPATH/../xml" - "$PHP5PATH"php GenCode.php $SCHEMA '' $GENCODE_CMS + "$PHP5PATH"php -d mysql.default_host=$DBHOST -d mysql.default_user=$DBUSER -d mysql.default_password=$DBPASS GenCode.php $SCHEMA '' $GENCODE_CMS fi # someone might want to use empty password for development, -- 2.25.1