X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=installation%2Fsdnc%2Fsrc%2Fmain%2Fscripts%2FaddA1TrustStore.sh;h=3528ddf3989f9b924e33f11bbb45bf94f624963d;hb=55378e7480442b8cee46d215a85e194c56b38f36;hp=ae74e5f053a28347b123fe0cc1beb40388c752f1;hpb=25db839a60d5cc9db59e8e8b8e0c26c8fc69068c;p=sdnc%2Foam.git diff --git a/installation/sdnc/src/main/scripts/addA1TrustStore.sh b/installation/sdnc/src/main/scripts/addA1TrustStore.sh index ae74e5f0..3528ddf3 100755 --- a/installation/sdnc/src/main/scripts/addA1TrustStore.sh +++ b/installation/sdnc/src/main/scripts/addA1TrustStore.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash ### # ============LICENSE_START======================================================= @@ -22,7 +22,7 @@ SDNC_STORE_DIR=${SDNC_STORE_DIR:-/opt/onap/sdnc/data/stores} A1_TRUSTSTORE=${SDNC_STORE_DIR}/truststore.a1.adapter.jks ONAP_TRUSTSTORE=${SDNC_STORE_DIR}/truststoreONAPall.jks -if [ -f ${A1_TRUST_STORE} ] +if [ -f ${A1_TRUSTSTORE} -a "${A1_TRUSTSTORE_PASSWORD}" != "" ] then keytool -importkeystore -srckeystore ${A1_TRUSTSTORE} -srcstorepass ${A1_TRUSTSTORE_PASSWORD} -destkeystore ${ONAP_TRUSTSTORE} -deststorepass changeit fi