Browse Source

restart dnsmasq to apply config change

HgO 1 year ago
parent
commit
fe15d2e575
2 changed files with 2 additions and 1 deletions
  1. 1 1
      conf/dnsmasq.conf.tpl
  2. 1 0
      scripts/_common.sh

+ 1 - 1
conf/dnsmasq.conf.tpl

@@ -1,4 +1,4 @@
 # Wifi Hotspot app for YunoHost 
 # Wifi Hotspot app for YunoHost 
 
 
-# Enable DNS
+# Enable DNS resolution on wifi interface
 interface=__WIFI_DEVICE__
 interface=__WIFI_DEVICE__

+ 1 - 0
scripts/_common.sh

@@ -82,6 +82,7 @@ function configure_hostapd()
 function configure_dnsmasq()
 function configure_dnsmasq()
 {
 {
   ynh_add_config --template="/etc/dnsmasq.$app/dnsmasq.conf.tpl" --destination="/etc/dnsmasq.d/$app.conf"
   ynh_add_config --template="/etc/dnsmasq.$app/dnsmasq.conf.tpl" --destination="/etc/dnsmasq.d/$app.conf"
+  systemctl restart dnsmasq
 }
 }
 
 
 function configure_dhcp()
 function configure_dhcp()