aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/upgrade8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/upgrade b/scripts/upgrade
index 0260ee1..771b98b 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -31,6 +31,9 @@ db_name=$app
sudo sed -i "s@__PATH__@$app@g" ../conf/nginx.conf*
sudo sed -i "s@__FINALPATH__@$final_path/@g" ../conf/nginx.conf*
+# Stop Mastodon Services
+sudo systemctl stop /etc/systemd/system/mastodon-*.service
+
# Update Mastodon
sudo su - $app <<COMMANDS
pushd ~/live
@@ -39,6 +42,9 @@ RAILS_ENV=production bin/bundle exec rails db:migrate
RAILS_ENV=production bin/bundle exec rails assets:precompile
COMMANDS
+# Start Mastodon Services
+sudo systemctl start /etc/systemd/system/mastodon-*.service
+
# If app is public, add url to SSOWat conf as skipped_uris
if [ $is_public = "Yes" ];
then
@@ -51,4 +57,4 @@ fi
# Reload Nginx
sudo systemctl reload nginx
# Reload Mastodon
-sudo systemctl restart mastodon-*.service \ No newline at end of file
+sudo systemctl restart mastodon-*.service