From a301d02e27651c0cbbdaa7d2b5d64353950ea5fe Mon Sep 17 00:00:00 2001 From: Fabian Wilkens Date: Sun, 14 Mar 2021 18:52:41 +0100 Subject: [PATCH] Fix ynh_install_ruby remove script --- scripts/ynh_install_ruby | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/ynh_install_ruby b/scripts/ynh_install_ruby index 74b526f..0e4f85a 100644 --- a/scripts/ynh_install_ruby +++ b/scripts/ynh_install_ruby @@ -135,13 +135,13 @@ ynh_remove_ruby () { $rbenv_install_dir/bin/rbenv uninstall --force $ruby_version fi - # Remove rbenv environment configuration - rm /etc/profile.d/rbenv.sh - # If no other app uses rbenv, remove rbenv and dedicated group if [ ! -s "$rbenv_install_dir/ynh_app_version" ] then ynh_secure_remove "$rbenv_install_dir" + + # Remove rbenv environment configuration + rm /etc/profile.d/rbenv.sh fi }