X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=installation%2Fsdnc%2Fsrc%2Fmain%2Fscripts%2FaddA1TrustStore.sh;h=3528ddf3989f9b924e33f11bbb45bf94f624963d;hb=fc20c489c11e028a58b3bf8d5cc2797b07d6e30b;hp=ae74e5f053a28347b123fe0cc1beb40388c752f1;hpb=cf6eb9744f6db8753fe05a9575045d82bf6f873f;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