Merge pull request #237 from YunoHost/cleaner_remove

Reorder system config removal
This commit is contained in:
Salamandar 2024-06-20 16:09:21 +02:00 committed by GitHub
commit 2828981738
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,16 +27,14 @@ ynh_script_progression --message="Removing system configurations related to $app
### This should be a symetric version of what happens in the install script
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status "$app" >/dev/null; then
ynh_script_progression --message="Removing $app service integration..." --weight=1
yunohost service remove "$app"
fi
ynh_remove_fail2ban_config
ynh_remove_logrotate
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status "$app" >/dev/null; then
yunohost service remove "$app"
fi
ynh_remove_systemd_config
ynh_remove_nginx_config