From 5d7a9ca16e48745239823f983fb4fda3b5d972f6 Mon Sep 17 00:00:00 2001 From: HgO Date: Fri, 22 Sep 2023 17:44:27 +0200 Subject: [PATCH] restart dnsmasq to apply config change --- scripts/remove | 1 + scripts/restore | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/remove b/scripts/remove index c59fe8e..e3f3ea5 100644 --- a/scripts/remove +++ b/scripts/remove @@ -65,6 +65,7 @@ done # Remove confs ynh_secure_remove --file="/etc/dnsmasq.d/$app.conf" +systemctl restart dnsmasq ynh_secure_remove --file="/etc/dnsmasq.$app/" ynh_secure_remove --file="/etc/hostapd/$app/" diff --git a/scripts/restore b/scripts/restore index afd0c60..af9c431 100644 --- a/scripts/restore +++ b/scripts/restore @@ -67,6 +67,7 @@ ynh_restore_file --origin_path="/etc/hostapd/$app/hostapd.conf" --not_mandatory ynh_restore_file --origin_path="/etc/dnsmasq.$app/dnsmasq.conf.tpl" ynh_restore_file --origin_path="/etc/dnsmasq.d/$app.conf" --not_mandatory +systemctl restart dnsmasq ynh_restore_file --origin_path="/etc/dnsmasq.$app/dhcpdv6.conf.tpl" ynh_restore_file --origin_path="/etc/dnsmasq.$app/dhcpdv6.conf" --not_mandatory