From f7d7430141b5b3b6b086a5664d9eccc9cf456065 Mon Sep 17 00:00:00 2001 From: jhh Date: Tue, 6 Sep 2022 12:16:31 -0500 Subject: Allow overrides of guard xacml.properties Issue-ID: POLICY-4340 Signed-off-by: jhh Change-Id: Ifa59a52114a774ed94b33da06f7f0df1007d3c20 --- packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx-pg.sh | 5 +++++ packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx.sh | 5 +++++ 2 files changed, 10 insertions(+) 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 -- cgit 1.2.3-korg