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