From 88d1b6ccc92a42c94c2cd462789a90fcf245efb2 Mon Sep 17 00:00:00 2001 From: Jorge Hernandez Date: Wed, 19 Sep 2018 14:35:22 -0500 Subject: AAF Configuration in PDP-D AAF is disabled by default until pairwise testing is completed. Change-Id: Ica83873a2605742689ed0c2e06dfade20bef8bf0 Signed-off-by: Jorge Hernandez Issue-ID: POLICY-1043 Signed-off-by: Jorge Hernandez --- packages/docker/src/main/docker/do-start.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'packages/docker/src') diff --git a/packages/docker/src/main/docker/do-start.sh b/packages/docker/src/main/docker/do-start.sh index 9e4659df..af7b3d9c 100644 --- a/packages/docker/src/main/docker/do-start.sh +++ b/packages/docker/src/main/docker/do-start.sh @@ -56,7 +56,7 @@ else . /opt/app/policy/etc/profile.d/env.sh - # override the policy keystore and truststore if present + # allow user to override the key or/and the trust stores if [[ -f config/policy-keystore ]]; then cp -f config/policy-keystore ${POLICY_HOME}/etc/ssl @@ -66,6 +66,24 @@ else cp -f config/policy-truststore ${POLICY_HOME}/etc/ssl fi + # allow user to override all or some aaf configuration + + if [[ -f config/aaf.properties ]]; then + cp -f config/aaf.properties ${POLICY_HOME}/config/aaf.properties + fi + + if [[ -f config/aaf-location.properties ]]; then + cp -f config/aaf-location.properties ${POLICY_HOME}/config/aaf-location.properties + fi + + if [[ -f config/aaf-credentials.properties ]]; then + cp -f config/aaf-credentials.properties ${POLICY_HOME}/config/aaf-credentials.properties + fi + + if [[ -f config/aaf-cadi.keyfile ]]; then + cp -f config/aaf-cadi.keyfile ${POLICY_HOME}/config/aaf-cadi.keyfile + fi + if [[ -f config/drools-tweaks.sh ]] ; then echo "Executing tweaks" # file may not be executable; running it as an -- cgit 1.2.3-korg