Parcourir la source

Cleanup/propagate stuff to config panel controller as well

Alexandre Aubin il y a 1 an
Parent
commit
3e2bd872ce
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      scripts/config

+ 2 - 1
scripts/config

@@ -213,12 +213,13 @@ ynh_app_config_apply() {
     else
     else
         ynh_print_info --message="Cleanup hotspot config files"
         ynh_print_info --message="Cleanup hotspot config files"
         ynh_secure_remove --file="/etc/hostapd/$app/hostapd.conf"
         ynh_secure_remove --file="/etc/hostapd/$app/hostapd.conf"
-        ynh_secure_remove --file="/etc/dnsmasq.d/$app.conf"
         ynh_secure_remove --file="/etc/dnsmasq.$app/dhcpdv4.conf"
         ynh_secure_remove --file="/etc/dnsmasq.$app/dhcpdv4.conf"
         ynh_secure_remove --file="/etc/dnsmasq.$app/dhcpdv6.conf"
         ynh_secure_remove --file="/etc/dnsmasq.$app/dhcpdv6.conf"
 
 
         systemctl restart dnsmasq
         systemctl restart dnsmasq
     fi
     fi
+
+    yunohost tools regen-conf dnsmasq
 }
 }
 
 
 ynh_app_config_run $1
 ynh_app_config_run $1