From 94501cea19265aa90a9457f2b2cfbab49900a02a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 25 Jan 2021 12:27:31 +0100 Subject: [PATCH 1/2] Update sources/Coturn_config_rotate.sh Co-authored-by: Kayou --- sources/Coturn_config_rotate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/Coturn_config_rotate.sh b/sources/Coturn_config_rotate.sh index 774c996..7f41aa4 100644 --- a/sources/Coturn_config_rotate.sh +++ b/sources/Coturn_config_rotate.sh @@ -9,7 +9,7 @@ external_IP_line="external-ip=__IPV4__,__IPV6__" public_ip4="$(curl ip.yunohost.org)" || true public_ip6="$(curl ipv6.yunohost.org)" || true -if [[ -n "$public_ip4" ]] && ynh_validate_ip 4 "$public_ip4" +if [ -n "$public_ip4" ] && ynh_validate_ip4 --ip_address="$public_ip4" then external_IP_line="${external_IP_line/'__IPV4__'/$public_ip4}" else From 41ec15555436eac9514af1b62856ed86ce902938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 25 Jan 2021 12:27:40 +0100 Subject: [PATCH 2/2] Update sources/Coturn_config_rotate.sh Co-authored-by: Kayou --- sources/Coturn_config_rotate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/Coturn_config_rotate.sh b/sources/Coturn_config_rotate.sh index 7f41aa4..2780efd 100644 --- a/sources/Coturn_config_rotate.sh +++ b/sources/Coturn_config_rotate.sh @@ -16,7 +16,7 @@ else external_IP_line="${external_IP_line/'__IPV4__,'/}" fi -if [[ -n "$public_ip6" ]] && ynh_validate_ip 6 "$public_ip6" +if [ -n "$public_ip6" ] && ynh_validate_ip6 --ip_address="$public_ip6" then external_IP_line="${external_IP_line/'__IPV6__'/$public_ip6}" else