aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-04-11 16:51:11 +0200
committerGitHub <noreply@github.com>2017-04-11 16:51:11 +0200
commit51a5fc28f10acd0eba05bdeae6d384153a535881 (patch)
tree1a2d9be1be6c3d6b5488fdd42cdebfc683f45f23 /scripts
parent90462283e75611d7638457ce4edcf89c3e48a326 (diff)
downloadmastodon_ynh-51a5fc28f10acd0eba05bdeae6d384153a535881.tar.gz
mastodon_ynh-51a5fc28f10acd0eba05bdeae6d384153a535881.tar.bz2
mastodon_ynh-51a5fc28f10acd0eba05bdeae6d384153a535881.zip
Repair broken services
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install20
1 files changed, 12 insertions, 8 deletions
diff --git a/scripts/install b/scripts/install
index 849a88e..b3150f0 100644
--- a/scripts/install
+++ b/scripts/install
@@ -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