Added command-line switches to PHP in setup.sh to provide the DB credentials as defau...
authorDavid Knoll <david@futurefirst.org.uk>
Mon, 29 Sep 2014 11:51:45 +0000 (12:51 +0100)
committerDavid Knoll <david@futurefirst.org.uk>
Mon, 29 Sep 2014 11:51:45 +0000 (12:51 +0100)
bin/setup.sh

index 989e33b5d740ae14bbd79c239716bb4cb76e2d44..b44f455c0fd4f09d965000e71149218ff48232eb 100755 (executable)
@@ -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,