Parcourir la source

restart dnsmasq to apply config change

HgO il y a 1 an
Parent
commit
5d7a9ca16e
2 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 1 0
      scripts/remove
  2. 1 0
      scripts/restore

+ 1 - 0
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/"

+ 1 - 0
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