1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

fix cleanup

This commit is contained in:
HgO 2023-08-21 19:16:02 +02:00
parent 35eb80ef4a
commit 8f6da7c103
2 changed files with 3 additions and 12 deletions

View file

@ -64,14 +64,8 @@ do
done done
# Remove confs # Remove confs
ynh_secure_remove --file="/etc/dnsmasq.$app/dhcpdv6.conf.tpl" ynh_secure_remove --file="/etc/dnsmasq.$app/"
ynh_secure_remove --file="/etc/dnsmasq.$app/dhcpdv6.conf" ynh_secure_remove --file="/etc/hostapd/$app/"
ynh_secure_remove --file="/etc/dnsmasq.$app/dhcpdv4.conf.tpl"
ynh_secure_remove --file="/etc/dnsmasq.$app/dhcpdv4.conf"
ynh_secure_remove --file="/etc/hostapd/$app/hostapd.conf.tpl"
ynh_secure_remove --file="/etc/hostapd/$app/hostapd.conf"
#================================================= #=================================================
# CLOSE A PORT # CLOSE A PORT

View file

@ -123,10 +123,7 @@ fi
ynh_secure_remove --file="/etc/hostapd/hostapd.conf" ynh_secure_remove --file="/etc/hostapd/hostapd.conf"
ynh_secure_remove --file="/etc/hostapd/hostapd.base.conf" ynh_secure_remove --file="/etc/hostapd/hostapd.base.conf"
ynh_secure_remove --file="/etc/hostapd/hostapd.accesspoint.conf" ynh_secure_remove --file="/etc/hostapd/hostapd.accesspoint.conf"
ynh_secure_remove --file="/etc/dnsmasq.dhcpd/"
for FILE in $(ls /etc/dnsmasq.dhcpd/*.conf 2>/dev/null); do
ynh_secure_remove --file="$FILE"
done
# Old stuff prior to 2.x # Old stuff prior to 2.x