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

Update install

This commit is contained in:
nemsia 2017-04-11 13:54:13 +02:00 committed by GitHub
parent 22e483a8a3
commit 0ab50ab5eb

View file

@ -65,12 +65,6 @@ curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
sudo apt-get -y install nodejs
sudo npm install -g yarn
# Create DB user mastodon
ynh_psql_create_user_without_password "$app"
# Create DB user mastodon
ynh_psql_create_db_without_password "$app"
# Set UTF8 encoding by default
sudo su -c "psql" postgres <<< \
"update pg_database set datistemplate='false' where datname='template1';"\
@ -78,6 +72,9 @@ sudo su -c "psql" postgres <<< \
"create database template1 encoding='UTF8' template template0;"\
"update pg_database set datistemplate='true' where datname='template1';"
# Create DB user mastodon
ynh_psql_create_db_without_password "$app"
# Download all Ruby source
sudo git clone https://github.com/rbenv/rbenv.git $final_path/.rbenv
sudo git clone https://github.com/rbenv/ruby-build.git $final_path/.rbenv/plugins/ruby-build