1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glitchsoc_ynh.git synced 2024-09-03 19:15:59 +02:00

Another change on PG set UTF8

This commit is contained in:
nemsia 2017-04-11 14:36:12 +02:00
parent 8f906508aa
commit b3c81edb5d

View file

@ -68,10 +68,13 @@ sudo npm install -g yarn
<<<<<<< HEAD
# Set UTF8 encoding by default
sudo su -c "psql" postgres <<< \
"update pg_database set datistemplate='false' where datname='template1';"\
"drop database template1;"\
"create database template1 encoding='UTF8' template template0;"\
"update pg_database set datistemplate='true' where datname='template1';"
"update pg_database set datistemplate='false' where datname='template1';"
sudo su -c "psql" postgres <<< \
"drop database template1;"
sudo su -c "psql" postgres <<< \
"create database template1 encoding='UTF8' template template0;"
sudo su -c "psql" postgres <<< \
"update pg_database set datistemplate='true' where datname='template1';"
# Create DB user mastodon
=======