From: Sam Date: Thu, 14 May 2015 06:48:42 +0000 (+1000) Subject: FIX: bad SQL in bootstrap X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e4eb2bc00225f7f734c5a5e854a1b6641c6114f3;p=discourse_docker.git FIX: bad SQL in bootstrap --- diff --git a/templates/postgres.template.yml b/templates/postgres.template.yml index d97c936..dc88882 100644 --- a/templates/postgres.template.yml +++ b/templates/postgres.template.yml @@ -186,7 +186,7 @@ run: - exec: su postgres -c 'psql $db_name -c "create extension if not exists pg_trgm;"' - exec: stdin: | - update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = '$db_name' AND encoding = pg_encoding_to_char('SQL_ASCII'); + update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = '$db_name' AND encoding = pg_char_to_encoding('SQL_ASCII'); cmd: sudo -u postgres psql $db_name raise_on_fail: false