mirror of
https://github.com/YunoHost-Apps/snserver_ynh.git
synced 2024-09-03 20:26:22 +02:00
Fix ynh_install_ruby remove script
This commit is contained in:
parent
02b9a68981
commit
a301d02e27
1 changed files with 3 additions and 3 deletions
|
@ -135,13 +135,13 @@ ynh_remove_ruby () {
|
||||||
$rbenv_install_dir/bin/rbenv uninstall --force $ruby_version
|
$rbenv_install_dir/bin/rbenv uninstall --force $ruby_version
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove rbenv environment configuration
|
|
||||||
rm /etc/profile.d/rbenv.sh
|
|
||||||
|
|
||||||
# If no other app uses rbenv, remove rbenv and dedicated group
|
# If no other app uses rbenv, remove rbenv and dedicated group
|
||||||
if [ ! -s "$rbenv_install_dir/ynh_app_version" ]
|
if [ ! -s "$rbenv_install_dir/ynh_app_version" ]
|
||||||
then
|
then
|
||||||
ynh_secure_remove "$rbenv_install_dir"
|
ynh_secure_remove "$rbenv_install_dir"
|
||||||
|
|
||||||
|
# Remove rbenv environment configuration
|
||||||
|
rm /etc/profile.d/rbenv.sh
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue