From 8d449cf8f90690d6664799bc1d34dc91c425bac0 Mon Sep 17 00:00:00 2001 From: Scott Koranda Date: Fri, 15 Oct 2021 07:57:59 -0500 Subject: [PATCH] Fix bug preventing fuzzystrmatch extension creation (CO-1794) --- comanage-match-postgres/init-comanage-match-database.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/comanage-match-postgres/init-comanage-match-database.sh b/comanage-match-postgres/init-comanage-match-database.sh index 86caa63..a6d8d95 100644 --- a/comanage-match-postgres/init-comanage-match-database.sh +++ b/comanage-match-postgres/init-comanage-match-database.sh @@ -1,6 +1,6 @@ #!/bin/bash -x -# COmanage Registry PostgreSQL entrypoint +# COmanage Match PostgreSQL entrypoint # # Portions licensed to the University Corporation for Advanced Internet # Development, Inc. ("UCAID") under one or more contributor license agreements. @@ -35,9 +35,8 @@ else CREATE DATABASE $COMANAGE_MATCH_POSTGRES_DATABASE; GRANT ALL PRIVILEGES ON DATABASE $COMANAGE_MATCH_POSTGRES_DATABASE TO $COMANAGE_MATCH_POSTGRES_USER; EOSQL +fi psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" "$COMANAGE_MATCH_POSTGRES_DATABASE" <<-EOSQL CREATE EXTENSION fuzzystrmatch; EOSQL - -fi