diff options
| author | __cyp <cyp@rouquin.me> | 2017-04-11 17:21:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-11 17:21:14 +0200 |
| commit | 06981deb6a5f24fcc7c760d6cb76273c5286bb13 (patch) | |
| tree | 32e81e7d4a46bf7a8836d85cf585c4e8fdba0e47 /scripts/upgrade | |
| parent | d582ec8d7bb114961f58c36bf0bb0b8257a7cbca (diff) | |
| parent | 80fa7cd71afbef63fe8a1e0b52431c3c192233ca (diff) | |
| download | mastodon_ynh-06981deb6a5f24fcc7c760d6cb76273c5286bb13.tar.gz mastodon_ynh-06981deb6a5f24fcc7c760d6cb76273c5286bb13.tar.bz2 mastodon_ynh-06981deb6a5f24fcc7c760d6cb76273c5286bb13.zip | |
Merge pull request #3 from nemsia/master
Big Pull request for install script
Diffstat (limited to 'scripts/upgrade')
| -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 |
