SDNC-665: Change to startODL for oam repo 37/82937/2
authorDarraghEgan <darragh.egan@est.tech>
Mon, 25 Mar 2019 18:04:31 +0000 (18:04 +0000)
committerDarraghEgan <darragh.egan@est.tech>
Mon, 25 Mar 2019 18:04:31 +0000 (18:04 +0000)
This is for the post operation of keystore to add
new keystore to odl while it's coming up and also
to add certificates and keys that are available
to odl's keystore and truststore

When sdnc/oam gets mounted and so does oom repo,
the startODL.sh in the oam repo gets overwritten
by the startODL.sh in the oom repo. This change
updates the startODL.sh so both scripts will be
the same in each repo

Issue-ID: SDNC-665
Change-Id: Ie9096c4d68e8c0c88682d188194c386e69b0108d
Signed-off-by: DarraghEgan <darragh.egan@est.tech>
kubernetes/sdnc/resources/config/bin/startODL.sh

index d1b0c99..6718aaf 100755 (executable)
@@ -80,6 +80,7 @@ function enable_odl_cluster(){
 ODL_HOME=${ODL_HOME:-/opt/opendaylight/current}
 ODL_ADMIN_PASSWORD=${ODL_ADMIN_PASSWORD:-Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U}
 SDNC_HOME=${SDNC_HOME:-/opt/onap/sdnc}
+SDNC_BIN=${SDNC_BIN:-/opt/onap/sdnc/bin}
 CCSDK_HOME=${CCSDK_HOME:-/opt/onap/ccsdk}
 SLEEP_TIME=${SLEEP_TIME:-120}
 MYSQL_PASSWD=${MYSQL_PASSWD:-{{.Values.config.dbRootPassword}}}
@@ -131,5 +132,10 @@ then
         echo "Installed at `date`" > ${SDNC_HOME}/.installed
 fi
 
+cp /opt/opendaylight/current/certs/* /tmp
+
+nohup python ${SDNC_BIN}/installCerts.py &
+
+
 exec ${ODL_HOME}/bin/karaf server