summaryrefslogtreecommitdiffstats
path: root/odlsli/src/main
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2018-11-15 20:54:54 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-15 20:54:54 +0000
commit1b1053497f3fefadc7a223ff8f4cc695c1d66b60 (patch)
treeb70a2741886e52d7bb57fc563668cb604c328732 /odlsli/src/main
parentbf312812327b3f840d484113d26b3310502f5671 (diff)
parent47d703698414dbdb160a7e86c728df3ce0a752cb (diff)
Merge "Store .installed marker in persistent volume"
Diffstat (limited to 'odlsli/src/main')
-rw-r--r--odlsli/src/main/scripts/startODL.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/odlsli/src/main/scripts/startODL.sh b/odlsli/src/main/scripts/startODL.sh
index 8c45dda5..4d608577 100644
--- a/odlsli/src/main/scripts/startODL.sh
+++ b/odlsli/src/main/scripts/startODL.sh
@@ -29,6 +29,7 @@ ODL_ADMIN_PASSWORD=${ODL_ADMIN_PASSWORD:-Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJv
CCSDK_HOME=${CCSDK_HOME:-/opt/onap/ccsdk}
SLEEP_TIME=${SLEEP_TIME:-120}
MYSQL_PASSWD=${MYSQL_PASSWD:-openECOMP1.0}
+INSTALLED_DIR=${INSTALLED_FILE:-/opt/opendaylight/current/daexim}
#
@@ -42,7 +43,12 @@ do
done
echo -e "\nmysql ready"
-if [ ! -f ${CCSDK_HOME}/.installed ]
+if [ ! -d ${INSTALLED_DIR} ]
+then
+ mkdir -p ${INSTALLED_DIR}
+fi
+
+if [ ! -f ${INSTALLED_DIR}/.installed ]
then
echo "Installing SDN-C database"
${CCSDK_HOME}/bin/installSdncDb.sh
@@ -53,7 +59,7 @@ then
echo "Installing directed graphs"
${CCSDK_HOME}/svclogic/bin/install.sh
fi
- echo "Installed at `date`" > ${CCSDK_HOME}/.installed
+ echo "Installed at `date`" > ${INSTALLED_DIR}/.installed
fi
exec ${ODL_HOME}/bin/karaf server