Add IPv6 firewalls (close #12)

This commit is contained in:
Julien VAUBOURG
2015-07-24 23:48:24 +02:00
parent 8411d9164b
commit 8c92752728
8 changed files with 202 additions and 134 deletions

View File

@@ -22,6 +22,16 @@ export HOTSPOT_UPGRADE=1
sudo bash /etc/yunohost/apps/hotspot/scripts/remove
bash ./install "${domain}" "${path}" "${wifi_ssid}" "${wifi_passphrase}" "${firmware_nonfree}"
# Changes
if [ "$(ynh_setting hotspot ip6_firewall)" == '' ]; then
multissid=$(ynh_setting hotspot multissid)
ip6_firewall=$(printf '1|%.0s' $(seq "${multissid}"))
ip6_firewall=$(echo "${ip6_firewall%?}")
sudo yunohost app setting hotspot ip6_firewall -v "${ip6_firewall}"
fi
sudo systemctl start ynh-hotspot
exit 0