mirror of
https://github.com/YunoHost-Apps/bookwyrm_ynh.git
synced 2024-09-03 18:16:12 +02:00
fix service remove
This commit is contained in:
parent
7abf2cbf0e
commit
9783fd305b
1 changed files with 15 additions and 3 deletions
|
@ -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`)
|
||||
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
||||
if ynh_exec_warn_less yunohost service status "${app}-server" >/dev/null
|
||||
then
|
||||
ynh_script_progression --message="Removing $app service integration..." --weight=1
|
||||
yunohost service remove $app
|
||||
ynh_script_progression --message="Removing ${app}-server service integration..."
|
||||
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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue