From d8ddfcb35c26e69fdc21435ad2603bfe42252231 Mon Sep 17 00:00:00 2001 From: Fabian Wilkens Date: Sun, 14 Mar 2021 18:41:40 +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 92df8ee..c954a01 100644 --- a/scripts/ynh_install_ruby +++ b/scripts/ynh_install_ruby @@ -132,12 +132,12 @@ 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 }