1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snweb_ynh.git synced 2024-09-03 20:26:22 +02:00

Fix ynh_install_ruby remove script

This commit is contained in:
Fabian Wilkens 2021-03-14 18:41:40 +01:00
parent 57d184e359
commit d8ddfcb35c
No known key found for this signature in database
GPG key ID: 23DFA025BB4E9FAB

View file

@ -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
}