summaryrefslogtreecommitdiffstats
path: root/packages/policy-xacmlpdp-tarball/src/main/resources/mysql/bin/create-guard-table.sh
diff options
context:
space:
mode:
authorwaynedunican <wayne.dunican@est.tech>2022-05-05 09:25:49 +0100
committerWayne Dunican <wayne.dunican@est.tech>2022-05-17 17:07:41 +0100
commit86c91fd09daeb36367bf4c99eda9a52b4523521b (patch)
treee69f3c4ab904b879b0ce7c914dd7c091ba09bc63 /packages/policy-xacmlpdp-tarball/src/main/resources/mysql/bin/create-guard-table.sh
parent0949037a3ba7b646183acdeff83473527783b5ca (diff)
Support postgres in XACML-PDP
Issue-ID: POLICY-4187 Change-Id: Ifed655e214ce95b9cc8208cd5b0907e7bb00b463 Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
Diffstat (limited to 'packages/policy-xacmlpdp-tarball/src/main/resources/mysql/bin/create-guard-table.sh')
-rw-r--r--packages/policy-xacmlpdp-tarball/src/main/resources/mysql/bin/create-guard-table.sh10
1 files changed, 5 insertions, 5 deletions
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}"
-