diff options
| author | nemsia <nemsia@nemsia.org> | 2017-04-11 17:03:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-11 17:03:11 +0200 |
| commit | 6cca229765263b90433b776b9d2cc97e8c04ad22 (patch) | |
| tree | fb69ed7504446fa0925ba999d0d53ee585d4d8d6 | |
| parent | 571a4825b5205c17762a321de2320de4bcbaad9b (diff) | |
| download | mastodon_ynh-6cca229765263b90433b776b9d2cc97e8c04ad22.tar.gz mastodon_ynh-6cca229765263b90433b776b9d2cc97e8c04ad22.tar.bz2 mastodon_ynh-6cca229765263b90433b776b9d2cc97e8c04ad22.zip | |
Add stop and start services
| -rw-r--r-- | scripts/upgrade | 8 |
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 |
