summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc/resources/config/bin/startODL.sh
diff options
context:
space:
mode:
authorMandeep Khinda <Mandeep.Khinda@amdocs.com>2018-04-13 02:14:34 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-13 02:14:34 +0000
commit8cb27a420a63aa864543d207754d90816eb713fa (patch)
tree941b71214a6ebd822499e405383bf875407f7fa4 /kubernetes/sdnc/resources/config/bin/startODL.sh
parent8a07775e196d6837f8963da6a5d6d5e1077189d5 (diff)
parentbc92d13598938ad2abcd0a89b4c08b2f6500488e (diff)
Merge "Ensure sdnctl user/schema created on master MySQL"
Diffstat (limited to 'kubernetes/sdnc/resources/config/bin/startODL.sh')
-rwxr-xr-xkubernetes/sdnc/resources/config/bin/startODL.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/kubernetes/sdnc/resources/config/bin/startODL.sh b/kubernetes/sdnc/resources/config/bin/startODL.sh
index aa50cdae29..0c41d3e3e0 100755
--- a/kubernetes/sdnc/resources/config/bin/startODL.sh
+++ b/kubernetes/sdnc/resources/config/bin/startODL.sh
@@ -52,12 +52,13 @@ SDNC_HOME=${SDNC_HOME:-/opt/onap/sdnc}
SLEEP_TIME=${SLEEP_TIME:-120}
MYSQL_PASSWD=${MYSQL_PASSWD:-{{.Values.config.dbRootPassword}}}
ENABLE_ODL_CLUSTER=${ENABLE_ODL_CLUSTER:-false}
+MYSQL_HOST=${MYSQL_HOST:-{{.Release.Name}}-{{.Values.mysql.nameOverride}}-0.{{.Values.mysql.service.name}}.{{.Release.Namespace}}}
#
# Wait for database to init properly
#
echo "Waiting for mysql"
-until mysql -h {{.Values.mysql.service.name}}.{{.Release.Namespace}} -u root -p{{.Values.config.dbRootPassword}} mysql &> /dev/null
+until mysql -h ${MYSQL_HOST} -u root -p${MYSQL_PASSWD} mysql &> /dev/null
do
printf "."
sleep 1