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

fix getting the vpnclient settings

This commit is contained in:
keoma 2019-02-15 22:37:31 +01:00 committed by Keoma Brun
parent 5de8193998
commit 9ba23345a3

View file

@ -154,8 +154,8 @@ if [[ ! -v ip6_net ]]; then # if ip6_net not set
ip6_addr=none
if [[ -e /tmp/.ynh-vpnclient-started ]]; then
vpnclient_ip6_net=$(sudo ynh_app_setting_set vpnclient ip6_net 2>&1)
vpnclient_ip6_addr=$(sudo ynh_app_setting_set vpnclient ip6_addr 2>&1)
vpnclient_ip6_net=$(yunohost app setting vpnclient ip6_net 2>&1)
vpnclient_ip6_addr=$(yunohost app setting vpnclient ip6_addr 2>&1)
if [[ $vpnclient_ip6_net =~ :: && $vpnclient_ip6_addr =~ :: ]]; then
ip6_net=${vpnclient_ip6_net}