fix service remove

This commit is contained in:
Thomas 2023-11-10 20:02:29 +01:00 committed by GitHub
parent 7abf2cbf0e
commit 9783fd305b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,10 +17,22 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`) # 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 if ynh_exec_warn_less yunohost service status "${app}-server" >/dev/null
then then
ynh_script_progression --message="Removing $app service integration..." --weight=1 ynh_script_progression --message="Removing ${app}-server service integration..."
yunohost service remove $app yunohost service remove "${app}-server"
fi
if ynh_exec_warn_less yunohost service status "${app}-worker" >/dev/null
then
ynh_script_progression --message="Removing ${app}-worker service integration..."
yunohost service remove "${app}-worker"
fi
if ynh_exec_warn_less yunohost service status "${app}-beat" >/dev/null
then
ynh_script_progression --message="Removing ${app}-beat service integration..."
yunohost service remove "${app}-beat"
fi fi
#================================================= #=================================================