2019-01-29 21:56:56 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# STANDARD REMOVE
|
|
|
|
#=================================================
|
2019-12-27 23:53:20 +01:00
|
|
|
# REMOVE SERVICE INTEGRATION IN YUNOHOST
|
2019-01-29 21:56:56 +01:00
|
|
|
#=================================================
|
|
|
|
|
2021-04-09 20:18:26 +02:00
|
|
|
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
2019-07-07 22:34:33 +02:00
|
|
|
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
2019-01-29 21:56:56 +01:00
|
|
|
then
|
2021-02-26 01:29:18 +01:00
|
|
|
ynh_script_progression --message="Removing $app service integration..."
|
2019-01-29 21:56:56 +01:00
|
|
|
yunohost service remove $app
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Remove the dedicated systemd config
|
2019-01-30 03:11:47 +01:00
|
|
|
ynh_remove_systemd_config
|
2019-01-29 21:56:56 +01:00
|
|
|
|
2020-09-22 15:45:01 +02:00
|
|
|
# Remove the dedicated NGINX config
|
2019-01-29 21:56:56 +01:00
|
|
|
ynh_remove_nginx_config
|
|
|
|
|
2022-01-14 23:51:04 +01:00
|
|
|
# Remove metapackage and its dependencies
|
|
|
|
ynh_remove_nodejs
|
|
|
|
|
2019-07-07 22:34:33 +02:00
|
|
|
yunohost user delete $ldap_user --purge
|
|
|
|
|
2019-02-11 06:05:30 +01:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2020-06-03 23:48:48 +02:00
|
|
|
ynh_script_progression --message="Removal of $app completed"
|