projects
/
discourse_docker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5d5f07
)
FIX: bad SQL in bootstrap
author
Sam
<sam.saffron@gmail.com>
Thu, 14 May 2015 06:48:42 +0000
(16:48 +1000)
committer
Sam
<sam.saffron@gmail.com>
Thu, 14 May 2015 06:56:34 +0000
(16:56 +1000)
templates/postgres.template.yml
patch
|
blob
|
blame
|
history
diff --git
a/templates/postgres.template.yml
b/templates/postgres.template.yml
index d97c936cf7d2bd11c765f3c9ab8936edcbf0ebce..dc8888210c39153fc027b6dcfe84d9252d832100 100644
(file)
--- 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