From a1edee0f3b2d361377e4b5573cd33f84f4c743c1 Mon Sep 17 00:00:00 2001 From: denis Date: Sun, 17 Nov 2024 14:32:14 -0500 Subject: [PATCH] Update scripts/remove --- scripts/remove | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/scripts/remove b/scripts/remove index 2e491c3..df502c8 100755 --- a/scripts/remove +++ b/scripts/remove @@ -13,8 +13,12 @@ source /usr/share/yunohost/helpers ynh_script_progression "Removing system configurations related to $app..." -if ynh_hide_warnings yunohost service status "$app" >/dev/null; then - yunohost service remove "$app" +if ynh_hide_warnings yunohost service status "{$app}-backend" >/dev/null; then + yunohost service remove "{$app}-backend" +fi + +if ynh_hide_warnings yunohost service status "{$app}-frontend" >/dev/null; then + yunohost service remove "{$app}-frontend" fi ynh_config_remove_systemd {$app}-backend @@ -23,12 +27,6 @@ ynh_config_remove_systemd {$app}-frontend ynh_config_remove_nginx -# Remove other various files specific to the app... such as: - -ynh_safe_rm "/etc/cron.d/$app" - -ynh_safe_rm "/etc/$app" - #================================================= # END OF SCRIPT #=================================================