mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
Set postgre encoding on UTF8
This commit is contained in:
parent
1c8abcfbef
commit
23211dff3c
1 changed files with 14 additions and 2 deletions
|
@ -66,8 +66,20 @@ sudo apt-get -y install nodejs
|
||||||
sudo npm install -g yarn
|
sudo npm install -g yarn
|
||||||
|
|
||||||
# Create DB without password
|
# Create DB without password
|
||||||
sudo systemctl restart postgresql
|
# sudo systemctl restart postgresql
|
||||||
ynh_psql_create_db_without_password "$app"
|
# 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
|
# Download all Ruby source
|
||||||
sudo git clone https://github.com/rbenv/rbenv.git $final_path/.rbenv
|
sudo git clone https://github.com/rbenv/rbenv.git $final_path/.rbenv
|
||||||
|
|
Loading…
Reference in a new issue