aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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