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

Set postgre encoding on UTF8

This commit is contained in:
nemsia 2017-04-10 23:27:02 +02:00 committed by GitHub
parent 1c8abcfbef
commit 23211dff3c

View file

@ -66,8 +66,20 @@ sudo apt-get -y install nodejs
sudo npm install -g yarn
# Create DB without password
sudo systemctl restart postgresql
ynh_psql_create_db_without_password "$app"
# sudo systemctl restart postgresql
# ynh_psql_create_db_without_password "$app"
# Don't work
# Create user mastodon and set UTF8 encoding by default
sudo su - postgres
psql
CREATE USER mastodon CREATEDB;
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';
\q
exit
# Download all Ruby source
sudo git clone https://github.com/rbenv/rbenv.git $final_path/.rbenv