diff options
| author | nemsia <nemsia@nemsia.org> | 2018-06-20 11:54:30 +0200 |
|---|---|---|
| committer | nemsia <nemsia@nemsia.org> | 2018-06-20 11:54:30 +0200 |
| commit | cd1f81fb5d25783329e549ee966a0a545001c63c (patch) | |
| tree | 1a10f70086f307655d992b89d1e3d8e6d8dc80cf /scripts/upgrade | |
| parent | a6bca0a63a059838473ab175d3b5510780ba0a31 (diff) | |
| download | mastodon_ynh-cd1f81fb5d25783329e549ee966a0a545001c63c.tar.gz mastodon_ynh-cd1f81fb5d25783329e549ee966a0a545001c63c.tar.bz2 mastodon_ynh-cd1f81fb5d25783329e549ee966a0a545001c63c.zip | |
Upgrade to 2.4.2
Diffstat (limited to 'scripts/upgrade')
| -rw-r--r-- | scripts/upgrade | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index 8551421..c6b7a83 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -82,7 +82,6 @@ fi # Add yarn repo echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list - #================================================= # INSTALL DEPENDENCIES #================================================= @@ -103,18 +102,21 @@ ynh_package_install pkg-config libprotobuf-dev protobuf-compiler libicu-dev libi # STANDARD UPGRADE STEPS #================================================= +# Change owner of live folder +chown -R $app: $final_path/live + # Stop Mastodon Services # Restart Mastodon yunohost service stop "$app-web" yunohost service stop "$app-sidekiq" yunohost service stop "$app-streaming" -# Change owner of live folder -chown -R $app: $final_path/live - # Download Mastodon ynh_setup_source "$final_path/live" "app-mastodon" +# Clean un-need Files +ynh_secure_remove $final_path/live/config/initializers/timeout.rb + #================================================= # NGINX CONFIGURATION #================================================= @@ -171,8 +173,6 @@ popd sudo su - $app <<COMMANDS pushd ~/live RAILS_ENV=production $final_path/.rbenv/versions/2.5.1/bin/bundle exec rails db:migrate -# Upgrade to 2.2.0 -RAILS_ENV=production $final_path/.rbenv/versions/2.5.1/bin/bundle exec rails mastodon:maintenance:remove_regeneration_markers COMMANDS ) #================================================= |
