1
0
Fork 0
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:
Jules Bertholet 2021-04-06 16:11:56 -04:00
parent a9082280ce
commit 6d172e2032

View file

@ -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