mirror of
https://github.com/YunoHost-Apps/guacamole_ynh.git
synced 2024-09-03 19:16:03 +02:00
Fix service integration removal
This commit is contained in:
parent
a9082280ce
commit
6d172e2032
1 changed files with 5 additions and 3 deletions
|
@ -29,10 +29,12 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# 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
|
ynh_script_progression --message="Removing $app service integration..." --weight=1
|
||||||
then
|
|
||||||
ynh_script_progression --message="Removing $app service integration..." --weight=1
|
if ynh_exec_warn_less yunohost service status $app-guacd >/dev/null; then
|
||||||
yunohost service remove "$app-guacd"
|
yunohost service remove "$app-guacd"
|
||||||
|
fi
|
||||||
|
if ynh_exec_warn_less yunohost service status $app-tomcat >/dev/null; then
|
||||||
yunohost service remove "$app-tomcat"
|
yunohost service remove "$app-tomcat"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue