From 736d7908b4f31095e7a7b92fc632b0f6fad05e83 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 19 May 2020 01:20:45 +0200 Subject: RUBY_VERSION factorisation --- scripts/restore | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts/restore') diff --git a/scripts/restore b/scripts/restore index c6e4bc8..bd79e95 100644 --- a/scripts/restore +++ b/scripts/restore @@ -114,9 +114,11 @@ ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ st #================================================= ynh_script_progression --message="Installing Ruby..." --weight=393 -ynh_install_ruby --ruby_version=2.6.5 -/opt/rbenv/versions/2.6.5/bin/gem update --system -/opt/rbenv/versions/2.6.5/bin/gem install bundler:1.17.3 --no-document +ynh_install_ruby --ruby_version=$RUBY_VERSION +pushd "$final_path/live" + gem update --system + gem install bundler:1.17.3 --no-document +popd #================================================= # RESTORE THE POSTGRESQL DATABASE -- cgit v1.2.3-70-g09d2