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