diff options
Diffstat (limited to 'packages/policy-xacmlpdp-tarball/src/main/resources/mysql')
-rw-r--r-- | packages/policy-xacmlpdp-tarball/src/main/resources/mysql/bin/create-guard-table.sh | 10 |
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}" - |