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

Cleanup/propagate stuff to config panel controller as well

This commit is contained in:
Alexandre Aubin 2023-10-05 19:05:13 +02:00
parent b80ee8b347
commit 3e2bd872ce

View file

@ -213,12 +213,13 @@ ynh_app_config_apply() {
else
ynh_print_info --message="Cleanup hotspot config files"
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/dhcpdv6.conf"
systemctl restart dnsmasq
fi
yunohost tools regen-conf dnsmasq
}
ynh_app_config_run $1