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:
parent
90462283e7
commit
51a5fc28f1
1 changed files with 12 additions and 8 deletions
|
@ -159,14 +159,6 @@ pushd ~/live
|
|||
# RAILS_ENV=production bin/bundle exec rails mastodon:confirm_email USER_EMAIL=$admin_mastodon@$domain
|
||||
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
|
||||
#pushd /var/cache/yunohost/from_file/mastodon_ynh-master/scripts
|
||||
pushd $(popd)
|
||||
|
@ -188,6 +180,18 @@ sudo yunohost service add mastodon-web
|
|||
sudo yunohost service add mastodon-sidekiq
|
||||
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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue