peertube-search-index_ynh/scripts/remove

36 lines
1 KiB
Text
Raw Normal View History

2020-10-31 14:18:46 +01:00
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
2024-02-28 12:03:57 +01:00
# REMOVE SYSTEM CONFIGURATIONS
2020-10-31 14:18:46 +01:00
#=================================================
2024-02-28 12:03:57 +01:00
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
2020-10-31 14:18:46 +01:00
2021-04-09 23:48:21 +02:00
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
2024-02-28 12:03:57 +01:00
if ynh_exec_warn_less yunohost service status "$app" >/dev/null; then
yunohost service remove "$app"
2020-10-31 14:18:46 +01:00
fi
# Remove the dedicated systemd config
ynh_remove_systemd_config
2022-01-07 04:00:37 +01:00
# Remove the app-specific logrotate config
ynh_remove_logrotate
2020-10-31 14:18:46 +01:00
2021-04-09 23:48:21 +02:00
# Remove the dedicated NGINX config
2020-10-31 14:18:46 +01:00
ynh_remove_nginx_config
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of $app completed"