summaryrefslogtreecommitdiffstats
path: root/packages/apex-pdp-package-full/src/main/package/scripts
diff options
context:
space:
mode:
authorjhh <jorge.hernandez-herrero@att.com>2019-10-17 15:29:19 -0500
committerjhh <jorge.hernandez-herrero@att.com>2019-10-17 15:29:19 -0500
commitc66ebba1fd4fb6365d17e3ed125bfde32913cd00 (patch)
treef9dadfcbd7f770013a274096aba15ddfd020ee7f /packages/apex-pdp-package-full/src/main/package/scripts
parent318a9895ddf5a08f0a0f13e3fe634b099707f5cf (diff)
override cert stores
Issue-ID: POLICY-2064 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ie48b9c322b5a643d3e5fa5a6125389c81cf31c96
Diffstat (limited to 'packages/apex-pdp-package-full/src/main/package/scripts')
-rw-r--r--packages/apex-pdp-package-full/src/main/package/scripts/apexOnapPf.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/apex-pdp-package-full/src/main/package/scripts/apexOnapPf.sh b/packages/apex-pdp-package-full/src/main/package/scripts/apexOnapPf.sh
index 3eaa25937..65cd48547 100644
--- a/packages/apex-pdp-package-full/src/main/package/scripts/apexOnapPf.sh
+++ b/packages/apex-pdp-package-full/src/main/package/scripts/apexOnapPf.sh
@@ -59,6 +59,16 @@ then
exit
fi
+if [[ -f "${HOME}"/config/policy-truststore ]]; then
+ echo "overriding policy-truststore"
+ cp -f "${HOME}"/config/policy-truststore "${APEX_HOME}"/etc/ssl/
+fi
+
+if [[ -f "${HOME}"/config/policy-keystore ]]; then
+ echo "overriding policy-keystore"
+ cp -f "${HOME}"/config/policy-keystore "${APEX_HOME}"/etc/ssl/
+fi
+
if [ $(whoami) == "$APEX_USER" ]
then
$APEX_HOME/bin/apexApps.sh onappf $*