This commit is contained in:
Félix Piédallu
2024-01-17 23:51:14 +01:00
parent 7dc02a0b02
commit 93e4839d7d
6 changed files with 77 additions and 126 deletions

View File

@@ -16,10 +16,9 @@ source /usr/share/yunohost/helpers
#=================================================
# 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..."
yunohost service remove $app
if ynh_exec_warn_less yunohost service status $app >/dev/null; then
ynh_script_progression --message="Removing $app service integration..."
yunohost service remove "$app"
fi
# Remove the dedicated systemd config