1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/linuxdash_ynh.git synced 2024-09-03 19:36:07 +02:00
linuxdash_ynh/scripts/remove

54 lines
1.7 KiB
Text
Raw Normal View History

2014-06-02 13:38:03 +02:00
#!/bin/bash
2018-01-29 00:55:27 +01:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2014-06-02 13:38:03 +02:00
2018-01-29 00:55:27 +01:00
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STANDARD REMOVE
#=================================================
2022-05-05 02:45:58 +02:00
# REMOVE SERVICE INTEGRATION IN YUNOHOST
2018-01-29 00:55:27 +01:00
#=================================================
2022-05-05 02:45:58 +02:00
# 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
then
ynh_script_progression --message="Removing $app service integration..."
yunohost service remove $app
fi
#=================================================
# STOP AND REMOVE SERVICE
#=================================================
ynh_script_progression --message="Stopping and removing the systemd service..."
# Remove the dedicated systemd config
ynh_remove_supervisor_config
2018-01-29 00:55:27 +01:00
#=================================================
2022-03-25 01:09:30 +01:00
# REMOVE NGINX CONFIGURATION
2018-01-29 00:55:27 +01:00
#=================================================
2022-03-25 01:09:30 +01:00
ynh_script_progression --message="Removing NGINX web server configuration..."
2022-03-25 01:09:30 +01:00
# Remove the dedicated NGINX config
ynh_remove_nginx_config
2018-01-29 00:55:27 +01:00
#=================================================
# REMOVE DEPENDENCIES
#=================================================
2023-06-11 18:39:46 +02:00
ynh_script_progression --message="Removing dependencies..."
2018-01-29 00:55:27 +01:00
# Remove metapackage and its dependencies
2022-05-05 02:45:58 +02:00
ynh_remove_nodejs
2022-03-25 01:09:30 +01:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of $app completed"