Quote the db password

This commit is contained in:
Andrea Dell'Amico 2020-10-14 15:07:52 +02:00
parent ae5e34e516
commit 8f994f6564
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
CREATE USER {{ open_asfa_db_user }} password {{ open_asfa_db_pwd }};
CREATE USER {{ open_asfa_db_user }} password '{{ open_asfa_db_pwd }}';
CREATE DATABASE {{ open_asfa_db_name }}
OWNER {{ open_asfa_db_user }}
ENCODING UTF8 LC_COLLATE 'en_US.UTF-8' LC_CTYPE 'en_US.UTF-8'