aboutsummaryrefslogtreecommitdiffstats
path: root/packages/policy-xacmlpdp-docker/src/main/docker
diff options
context:
space:
mode:
authorjhh <jorge.hernandez-herrero@att.com>2022-09-06 12:16:31 -0500
committerjhh <jorge.hernandez-herrero@att.com>2022-09-06 12:16:31 -0500
commitf7d7430141b5b3b6b086a5664d9eccc9cf456065 (patch)
treecb8a161b75efd2a53dd87786d2d2e58e81641ed6 /packages/policy-xacmlpdp-docker/src/main/docker
parentfb61d6324218d19e00613093d2d96f2582dc2ac4 (diff)
Allow overrides of guard xacml.properties
Issue-ID: POLICY-4340 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ifa59a52114a774ed94b33da06f7f0df1007d3c20
Diffstat (limited to 'packages/policy-xacmlpdp-docker/src/main/docker')
-rw-r--r--packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx-pg.sh5
-rw-r--r--packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx.sh5
2 files changed, 10 insertions, 0 deletions
diff --git a/packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx-pg.sh b/packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx-pg.sh
index 838cfa5f..b715c97d 100644
--- a/packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx-pg.sh
+++ b/packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx-pg.sh
@@ -67,6 +67,11 @@ if [ -f "${POLICY_HOME}/etc/mounted/db-pg.sql" ]; then
cp -f "${POLICY_HOME}"/etc/mounted/db-pg.sql "${POLICY_HOME}"/postgress/sql/
fi
+if [ -f "${POLICY_HOME}/etc/mounted/guard.xacml.properties" ]; then
+ echo "overriding guard application xacml.properties"
+ cp -f "${POLICY_HOME}"/etc/mounted/guard.xacml.properties "${POLICY_HOME}"/apps/guard/xacml.properties
+fi
+
# Create operationshistory table
"${POLICY_HOME}"/postgres/bin/create-guard-table-pg.sh
diff --git a/packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx.sh b/packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx.sh
index 0c7b98b4..537f2341 100644
--- a/packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx.sh
+++ b/packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx.sh
@@ -67,6 +67,11 @@ if [ -f "${POLICY_HOME}/etc/mounted/db.sql" ]; then
cp -f "${POLICY_HOME}"/etc/mounted/db.sql "${POLICY_HOME}"/mysql/sql/
fi
+if [ -f "${POLICY_HOME}/etc/mounted/guard.xacml.properties" ]; then
+ echo "overriding guard application xacml.properties"
+ cp -f "${POLICY_HOME}"/etc/mounted/guard.xacml.properties "${POLICY_HOME}"/apps/guard/xacml.properties
+fi
+
# Create operationshistory table
"${POLICY_HOME}"/mysql/bin/create-guard-table.sh