1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/squid3_ynh.git synced 2024-09-03 20:26:11 +02:00
squid3_ynh/scripts/remove

37 lines
1.1 KiB
Text
Raw Normal View History

2018-09-14 05:20:02 +02:00
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
2024-01-31 21:35:45 +01:00
# REMOVE SYSTEM CONFIGURATIONS
2020-10-17 11:19:50 +02:00
#=================================================
2024-01-31 21:35:45 +01:00
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
2018-09-14 05:20:02 +02:00
2022-03-13 16:50:54 +01:00
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
2024-02-01 11:54:07 +01:00
if ynh_exec_warn_less yunohost service status "squid" >/dev/null; then
yunohost service remove "squid"
2018-09-14 05:20:02 +02:00
fi
2020-10-17 11:19:50 +02:00
#=================================================
# REMOVE VARIOUS FILES
#=================================================
# Remove a directory securely
2024-02-01 11:54:07 +01:00
ynh_secure_remove --file="/etc/squid/"
2018-09-14 05:20:02 +02:00
2020-10-17 11:19:50 +02:00
# Remove the log files
2024-02-01 11:54:07 +01:00
ynh_secure_remove --file="/var/log/squid"
2020-10-17 11:19:50 +02:00
#=================================================
# END OF SCRIPT
#=================================================
2018-09-14 05:20:02 +02:00
2020-10-17 11:19:50 +02:00
ynh_script_progression --message="Removal of $app completed"