diff options
author | Alexis de Talhouƫt <alexis.de_talhouet@bell.ca> | 2018-11-14 17:51:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-11-14 17:51:42 +0000 |
commit | 0818a7419cdcf42f8c5b9dbfe2a99ef4f6318aac (patch) | |
tree | d5cb4b2229c07389c6656743e239988183e0f347 /kubernetes/sdnc/resources/config | |
parent | cb7e6cdb7d9cad944e37477a1aaf6364fadb5e24 (diff) | |
parent | e156c23814f038c99731b3ee4454ef0c8ec0be35 (diff) |
Merge "Store .installed marker in persistent volume"
Diffstat (limited to 'kubernetes/sdnc/resources/config')
-rwxr-xr-x | kubernetes/sdnc/resources/config/bin/startODL.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/kubernetes/sdnc/resources/config/bin/startODL.sh b/kubernetes/sdnc/resources/config/bin/startODL.sh index 9d1ab768fb..b94cf4fa7b 100755 --- a/kubernetes/sdnc/resources/config/bin/startODL.sh +++ b/kubernetes/sdnc/resources/config/bin/startODL.sh @@ -86,6 +86,7 @@ MYSQL_PASSWD=${MYSQL_PASSWD:-{{.Values.config.dbRootPassword}}} MYSQL_HOST=${MYSQL_HOST:-{{.Release.Name}}-{{.Values.mysql.nameOverride}}-0.{{.Values.mysql.service.name}}.{{.Release.Namespace}}} ENABLE_ODL_CLUSTER=${ENABLE_ODL_CLUSTER:-false} GEO_ENABLED=${GEO_ENABLED:-false} +INSTALLED_DIR=${INSTALLED_FILE:-/opt/opendaylight/current/daexim} # # Wait for database to init properly @@ -98,7 +99,12 @@ do done echo -e "\nmysql ready" -if [ ! -f ${SDNC_HOME}/.installed ] +if [ ! -d ${INSTALLED_DIR} ] +then + mkdir -p ${INSTALLED_DIR} +fi + +if [ ! -f ${INSTALLED_DIR}/.installed ] then echo "Installing SDNC database" ${SDNC_HOME}/bin/installSdncDb.sh @@ -116,7 +122,7 @@ then if $ENABLE_ODL_CLUSTER ; then enable_odl_cluster ; fi - echo "Installed at `date`" > ${SDNC_HOME}/.installed + echo "Installed at `date`" > ${INSTALLED_DIR}/.installed fi exec ${ODL_HOME}/bin/karaf server |