From 86c91fd09daeb36367bf4c99eda9a52b4523521b Mon Sep 17 00:00:00 2001 From: waynedunican Date: Thu, 5 May 2022 09:25:49 +0100 Subject: Support postgres in XACML-PDP Issue-ID: POLICY-4187 Change-Id: Ifed655e214ce95b9cc8208cd5b0907e7bb00b463 Signed-off-by: Wayne Dunican --- .../src/main/resources/mysql/bin/create-guard-table.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/policy-xacmlpdp-tarball/src/main/resources/mysql/bin/create-guard-table.sh') diff --git a/packages/policy-xacmlpdp-tarball/src/main/resources/mysql/bin/create-guard-table.sh b/packages/policy-xacmlpdp-tarball/src/main/resources/mysql/bin/create-guard-table.sh index 7e4bd35f..09a5d409 100644 --- a/packages/policy-xacmlpdp-tarball/src/main/resources/mysql/bin/create-guard-table.sh +++ b/packages/policy-xacmlpdp-tarball/src/main/resources/mysql/bin/create-guard-table.sh @@ -3,6 +3,7 @@ # ============LICENSE_START======================================================= # Copyright (C) 2019-2021 AT&T Intellectual Property. All rights reserved. # Modifications Copyright (C) 2020 Bell Canada. All rights reserved. +# Modifications Copyright (C) 2022 Nordix Foundation. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -39,20 +40,19 @@ DB_PASSWORD=$(awk -F= '$1 == "javax.persistence.jdbc.password" { print $2 }' /tm rm /tmp/temp.xacml.properties if [ -z "$DB_HOSTNAME" ]; then - echo "No Mariadb host provided in guard xacml.properties." + echo "No db host provided in guard xacml.properties." exit 2 fi if [ -z "$DB_USERNAME" ]; then - echo "No Mariadb username provided in guard xacml.properties." + echo "No db username provided in guard xacml.properties." exit 2 fi if [ -z "$DB_PASSWORD" ]; then - echo "No Mariadb password provided in guard xacml.properties." + echo "No db password provided in guard xacml.properties." exit 2 fi -# Execute mysql command using sql file to create table +# Execute sql command using sql file to create table mysql -u${DB_USERNAME} -p${DB_PASSWORD} -h${DB_HOSTNAME} < "${SQL_FILE}" - -- cgit 1.2.3-korg