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

restart dnsmasq to apply config change

This commit is contained in:
HgO 2023-09-22 17:44:27 +02:00
parent fe15d2e575
commit 5d7a9ca16e
2 changed files with 2 additions and 0 deletions

View file

@ -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/"

View file

@ -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