From 8f6da7c103113b5c0395ed154a6316b70e4f1f5b Mon Sep 17 00:00:00 2001 From: HgO Date: Mon, 21 Aug 2023 19:16:02 +0200 Subject: [PATCH] fix cleanup --- scripts/remove | 10 ++-------- scripts/upgrade | 5 +---- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/scripts/remove b/scripts/remove index d3acaa9..e7a0a0f 100644 --- a/scripts/remove +++ b/scripts/remove @@ -64,14 +64,8 @@ do done # Remove confs -ynh_secure_remove --file="/etc/dnsmasq.$app/dhcpdv6.conf.tpl" -ynh_secure_remove --file="/etc/dnsmasq.$app/dhcpdv6.conf" - -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" +ynh_secure_remove --file="/etc/dnsmasq.$app/" +ynh_secure_remove --file="/etc/hostapd/$app/" #================================================= # CLOSE A PORT diff --git a/scripts/upgrade b/scripts/upgrade index 5989d23..de98521 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -123,10 +123,7 @@ fi ynh_secure_remove --file="/etc/hostapd/hostapd.conf" ynh_secure_remove --file="/etc/hostapd/hostapd.base.conf" ynh_secure_remove --file="/etc/hostapd/hostapd.accesspoint.conf" - -for FILE in $(ls /etc/dnsmasq.dhcpd/*.conf 2>/dev/null); do - ynh_secure_remove --file="$FILE" -done +ynh_secure_remove --file="/etc/dnsmasq.dhcpd/" # Old stuff prior to 2.x