diff options
Diffstat (limited to 'packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx-pg.sh')
-rw-r--r-- | packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx-pg.sh | 13 |
1 files changed, 13 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 03faedff..838cfa5f 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 @@ -2,6 +2,7 @@ # # ============LICENSE_START======================================================= # Copyright (C) 2022 Nordix Foundation. +# Modifications Copyright (C) 2022 AT&T Intellectual Property. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -19,6 +20,8 @@ # ============LICENSE_END========================================================= # +set -x + KEYSTORE="${KEYSTORE:-$POLICY_HOME/etc/ssl/policy-keystore}" TRUSTSTORE="${TRUSTSTORE:-$POLICY_HOME/etc/ssl/policy-truststore}" KEYSTORE_PASSWD="${KEYSTORE_PASSWD:-Pol1cy_0nap}" @@ -54,6 +57,16 @@ if [ -f "${POLICY_HOME}/etc/mounted/logback.xml" ]; then cp -f "${POLICY_HOME}"/etc/mounted/logback.xml "${POLICY_HOME}"/etc/ fi +if [ -f "${POLICY_HOME}/etc/mounted/createguardtable-pg.sql" ]; then + echo "overriding createguardtable.sql" + cp -f "${POLICY_HOME}"/etc/mounted/createguardtable-pg.sql "${POLICY_HOME}"/postgress/sql/ +fi + +if [ -f "${POLICY_HOME}/etc/mounted/db-pg.sql" ]; then + echo "adding additional db-pg.sql" + cp -f "${POLICY_HOME}"/etc/mounted/db-pg.sql "${POLICY_HOME}"/postgress/sql/ +fi + # Create operationshistory table "${POLICY_HOME}"/postgres/bin/create-guard-table-pg.sh |