summaryrefslogtreecommitdiffstats
path: root/ms/generic-resource-api/src/main/resources/startGra.sh
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2020-11-19 16:42:57 -0500
committerDan Timoney <dtimoney@att.com>2020-11-19 16:42:57 -0500
commit7fb3dbed4c2450f600d4fdecabd09da51c03ef12 (patch)
tree6183e08a3a6d80f8cb5a31eb85dea95ed442ee57 /ms/generic-resource-api/src/main/resources/startGra.sh
parentcdbee91b722e25728fca0af32cf6a55d5be50c2e (diff)
Remove hard-coded credentials from application.properties
Remove hard-coded credentials from application.properties and use env variables instead. Note: we still have hard-coded credentials in dblib.properties and svclogic.properties that should be changed, but this will require coordinated changes in sli/core to be able to interpret env variables within properties files. Change-Id: I5a31fae6f81233682bee20a5cb531b7f0a21a3a7 Issue-ID: SDNC-1411 Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'ms/generic-resource-api/src/main/resources/startGra.sh')
-rw-r--r--ms/generic-resource-api/src/main/resources/startGra.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ms/generic-resource-api/src/main/resources/startGra.sh b/ms/generic-resource-api/src/main/resources/startGra.sh
index b29eb7f..cdf1566 100644
--- a/ms/generic-resource-api/src/main/resources/startGra.sh
+++ b/ms/generic-resource-api/src/main/resources/startGra.sh
@@ -56,13 +56,13 @@ echo -e "\nDatabase ready"
# Initialize schema
if [ -f ${SDNC_CONFIG_DIR}/schema-mysql.sql ]
then
- mysql -h ${MYSQL_DB_HOST} -u ${MYSQL_DB_USER} -p${MYSQL_DB_PASSWD} ${MYSQL_DB_DATABASE} < ${SDNC_CONFIG_DIR}/schema-mysql.sql
+ mysql -h ${MYSQL_DB_HOST} -u ${MYSQL_USER} -p${MYSQL_PASSWD} ${MYSQL_DATABASE} < ${SDNC_CONFIG_DIR}/schema-mysql.sql
fi
# Load data
if [ -f ${SDNC_CONFIG_DIR}/data-mysql.sql ]
then
- mysql -h ${MYSQL_DB_HOST} -u ${MYSQL_DB_USER} -p${MYSQL_DB_PASSWD} ${MYSQL_DB_DATABASE} < ${SDNC_CONFIG_DIR}/data-mysql.sql
+ mysql -h ${MYSQL_HOST} -u ${MYSQL_USER} -p${MYSQL_PASSWORD} ${MYSQL_DATABASE} < ${SDNC_CONFIG_DIR}/data-mysql.sql
fi
if [ ! -f ${SDNC_CERT_DIR}/${TRUSTSTORE} ]; then