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

Repair broken services

This commit is contained in:
nemsia 2017-04-11 16:51:11 +02:00 committed by GitHub
parent 90462283e7
commit 51a5fc28f1

View file

@ -159,14 +159,6 @@ pushd ~/live
# RAILS_ENV=production bin/bundle exec rails mastodon:confirm_email USER_EMAIL=$admin_mastodon@$domain # RAILS_ENV=production bin/bundle exec rails mastodon:confirm_email USER_EMAIL=$admin_mastodon@$domain
ACOMMANDS ACOMMANDS
# Re-Install Mastodon WHY ???
sudo su - $app <<MCOMMANDS
pushd ~/live
/opt/mastodon/.rbenv/versions/2.4.1/bin/gem install bundler
bin/bundle install --deployment --without development test
yarn install
MCOMMANDS
# Add Services # Add Services
#pushd /var/cache/yunohost/from_file/mastodon_ynh-master/scripts #pushd /var/cache/yunohost/from_file/mastodon_ynh-master/scripts
pushd $(popd) pushd $(popd)
@ -188,6 +180,18 @@ sudo yunohost service add mastodon-web
sudo yunohost service add mastodon-sidekiq sudo yunohost service add mastodon-sidekiq
sudo yunohost service add mastodon-streaming sudo yunohost service add mastodon-streaming
# restart 1
sudo systemctl restart /etc/systemd/system/mastodon-*.service
# Re-Install bundle WHY ???
sudo su - $app <<MCOMMANDS
pushd ~/live
bundle install
MCOMMANDS
# restart 2
sudo systemctl restart /etc/systemd/system/mastodon-*.service
# Copy nginx config # Copy nginx config
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
sudo sed -i "s@__PATH__@$path@g" /etc/nginx/conf.d/$domain.d/$app.conf sudo sed -i "s@__PATH__@$path@g" /etc/nginx/conf.d/$domain.d/$app.conf