summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dtimoney@att.com>2018-11-14 10:22:53 -0500
committerDan Timoney <dtimoney@att.com>2018-11-14 16:05:06 +0000
commitf40bcee7411ff0f252629cdf39337c9b7436c4ac (patch)
treed22a0c596e51d47cfd835590dcaccdd6857bf030
parent3df4ba7c88cf330cd358b2cc1a21cd31405fcbb7 (diff)
Store .installed marker in persistent volume
Store .installed marker in persistent volume (/opt/opendaylight/current/daexim) Change-Id: I74a4364c81b0d78f2a825c634f0094458651d621 Issue-ID: SDNC-518 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com> (cherry picked from commit a80381735f02625baa177faf4af99301a8858e4d [formerly f6191ba4d1156410259897097485ddad2a15178f]) Former-commit-id: 9b50f9c6f8c60e00e1571baaa0d100f589fc96cc
-rwxr-xr-xinstallation/sdnc/src/main/scripts/startODL.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/installation/sdnc/src/main/scripts/startODL.sh b/installation/sdnc/src/main/scripts/startODL.sh
index 02fb888a..9a795cab 100755
--- a/installation/sdnc/src/main/scripts/startODL.sh
+++ b/installation/sdnc/src/main/scripts/startODL.sh
@@ -79,6 +79,7 @@ MYSQL_PASSWD=${MYSQL_PASSWD:-openECOMP1.0}
ENABLE_ODL_CLUSTER=${ENABLE_ODL_CLUSTER:-false}
IS_PRIMARY_CLUSTER=${IS_PRIMARY_CLUSTER:-false}
MY_ODL_CLUSTER=${MY_ODL_CLUSTER:-127.0.0.1}
+INSTALLED_DIR=${INSTALLED_FILE:-/opt/opendaylight/current/daexim}
#
# Wait for database
@@ -91,7 +92,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 SDN-C database"
${SDNC_HOME}/bin/installSdncDb.sh
@@ -108,7 +114,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