Merge pull request #237 from YunoHost/cleaner_remove
Reorder system config removal
This commit is contained in:
commit
2828981738
1 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue