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

Clean lines

This commit is contained in:
nemsia 2017-04-11 14:51:38 +02:00 committed by GitHub
parent b3c81edb5d
commit 289d9fb81f

View file

@ -65,7 +65,6 @@ curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
sudo apt-get -y install nodejs
sudo npm install -g yarn
<<<<<<< HEAD
# Set UTF8 encoding by default
sudo su -c "psql" postgres <<< \
"update pg_database set datistemplate='false' where datname='template1';"
@ -76,28 +75,20 @@ sudo su -c "psql" postgres <<< \
sudo su -c "psql" postgres <<< \
"update pg_database set datistemplate='true' where datname='template1';"
# Create DB user mastodon
=======
# Create DB without password
sudo systemctl restart postgresql
>>>>>>> refs/remotes/magikcypress/master
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
<<<<<<< HEAD
sudo git clone https://github.com/tootsuite/mastodon.git $final_path/live
=======
# Be king rewind (/var/cache/yunohost/from_file/scripts)
popd
# Get Mastodon last version
sudo mkdir "${final_path}/live"
SETUP_SOURCE
>>>>>>> refs/remotes/magikcypress/master
sudo chown -R $app: "${final_path}"
# Install de rbenv
@ -212,10 +203,8 @@ fi
sudo yunohost app ssowatconf
# Reload Nginx
<<<<<<< HEAD
sudo systemctl reload nginx || true
# debug
sudo systemctl status nginx
=======
sudo systemctl reload nginx
>>>>>>> refs/remotes/magikcypress/master
# sudo systemctl status nginx
# sudo systemctl reload nginx