Changes to fix db connection issues in xacml-pdp 90/87390/4
authorMichael Mokry <michael.mokry@att.com>
Thu, 9 May 2019 19:50:20 +0000 (14:50 -0500)
committerMichael Mokry <michael.mokry@att.com>
Tue, 14 May 2019 14:21:45 +0000 (09:21 -0500)
Added code to copy the oom xacml.properties file to the proper directory
Made change based on Jorge's comments

Change-Id: I0c46a01ca4407fa4d18391ca9ad81d37a0f46969
Issue-ID: POLICY-1760
Signed-off-by: Michael Mokry <michael.mokry@att.com>
packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx.sh

index a845ae3..9e32d50 100644 (file)
@@ -48,6 +48,10 @@ if [ -z "$PROP_FILE" ]
     PROP_FILE="$POLICY_PDPX_HOME/etc/topic.properties"
 fi
 
+if [[ -f ${POLICY_HOME}/etc/mounted/xacml.properties ]]; then
+    cp -f "${POLICY_HOME}"/etc/mounted/xacml.properties  "${POLICY_HOME}"/apps/guard/
+fi
+
 echo "Policy Xacml PDP config file: $CONFIG_FILE"
 echo "Policy Xacml PDP topic properties file: $PROP_FILE"