From 2c8861a994de2cd200feabac8daf4a59ff43bea9 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 21 Mar 2019 02:31:06 +0100 Subject: Fix install and upgrade steps --- scripts/upgrade | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) (limited to 'scripts/upgrade') diff --git a/scripts/upgrade b/scripts/upgrade index 4c016e4..38b48ce 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -110,10 +110,6 @@ rm -Rf "$final_path/live_back" # Clean files which are not needed anymore ynh_secure_remove $final_path/live/config/initializers/timeout.rb -# Upgrade rbenv and ruby plugins -ynh_setup_source "$final_path/.rbenv" "app-rbenv" -ynh_setup_source "$final_path/.rbenv/plugins/ruby-build" "app-ruby-build" - #================================================= # NGINX CONFIGURATION #================================================= @@ -139,6 +135,9 @@ ynh_package_update # install nodejs ynh_install_nodejs 8 +# install ruby +ynh_install_ruby --ruby_version=2.6.0 + # TODO: use the same mecanism with other files ynh_install_app_dependencies $pkg_dependencies @@ -152,12 +151,6 @@ ynh_system_user_create $app #================================================= # SPECIFIC UPGRADE -#================================================= -# INSTALLING RUBY -#================================================= - -ynh_install_ruby --ruby_version=2.6.0 - #================================================= # UPGRADE MASTODON #================================================= @@ -166,20 +159,18 @@ ynh_print_info "Upgrading Mastodon..." chown -R "$app": "$final_path" pushd "$final_path/live" - su mastodon <