From a4f4b2d7b039dc4a7a96c73ba86bb75da590c25b Mon Sep 17 00:00:00 2001 From: Fabian Wilkens Date: Sat, 30 Jan 2021 22:44:08 +0100 Subject: [PATCH] Update ynh_install_ruby script --- scripts/ynh_install_ruby | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ynh_install_ruby b/scripts/ynh_install_ruby index 1547ea1..92df8ee 100644 --- a/scripts/ynh_install_ruby +++ b/scripts/ynh_install_ruby @@ -94,7 +94,7 @@ ynh_install_ruby () { CONFIGURE_OPTS="--disable-install-doc" MAKE_OPTS="-j2" rbenv install --skip-existing $ruby_version # Store the ID of this app and the version of ruby requested for it - echo "$YNH_APP_ID:$ruby_version" | tee --append "$rbenv_install_dir/ynh_app_version" + echo "$YNH_APP_INSTANCE_NAME:$ruby_version" | tee --append "$rbenv_install_dir/ynh_app_version" # Store ruby_version into the config of this app ynh_app_setting_set $app ruby_version $ruby_version @@ -124,7 +124,7 @@ ynh_remove_ruby () { ruby_version=$(ynh_app_setting_get $app ruby_version) # Remove the line for this app - sed --in-place "/$YNH_APP_ID:$ruby_version/d" "$rbenv_install_dir/ynh_app_version" + sed --in-place "/$YNH_APP_INSTANCE_NAME:$ruby_version/d" "$rbenv_install_dir/ynh_app_version" # If no other app uses this version of ruby, remove it. if ! grep --quiet "$ruby_version" "$rbenv_install_dir/ynh_app_version"