mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
Change pg encoding, again ...
This commit is contained in:
parent
a91a1fa199
commit
c893f503ab
1 changed files with 7 additions and 13 deletions
|
@ -65,21 +65,15 @@ curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
|
||||||
sudo apt-get -y install nodejs
|
sudo apt-get -y install nodejs
|
||||||
sudo npm install -g yarn
|
sudo npm install -g yarn
|
||||||
|
|
||||||
# Create DB without password
|
# Create DB user
|
||||||
# sudo systemctl restart postgresql
|
ynh_psql_create_user "$app"
|
||||||
# ynh_psql_create_db_without_password "$app"
|
|
||||||
# Don't work
|
|
||||||
|
|
||||||
# Create user mastodon and set UTF8 encoding by default
|
# Create user mastodon and set UTF8 encoding by default
|
||||||
sudo su - postgres
|
sudo su -c "psql" postgres <<< \
|
||||||
psql
|
"update pg_database set datistemplate='false' where datname='template1';"\
|
||||||
CREATE USER mastodon CREATEDB;
|
"drop database template1;"\
|
||||||
update pg_database set datistemplate='false' where datname='template1';
|
"create database template1 encoding='UTF8' template template0;"\
|
||||||
drop database template1;
|
"update pg_database set datistemplate='true' where datname='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