diff --git a/scripts/install b/scripts/install index daef186..d6cdb88 100644 --- a/scripts/install +++ b/scripts/install @@ -301,8 +301,8 @@ ynh_script_progression --message="Configuring coturn..." --weight=1 # Get public IP and set as external IP for coturn # note : '|| true' is used to ignore the errors if we can't get the public ipv4 or ipv6 -public_ip4="$(curl ip.yunohost.org)" || true -public_ip6="$(curl ipv6.yunohost.org)" || true +public_ip4="$(curl -s ip.yunohost.org)" || true +public_ip6="$(curl -s ipv6.yunohost.org)" || true turn_external_ip="" if [ -n "$public_ip4" ] && ynh_validate_ip4 --ip_address="$public_ip4" diff --git a/scripts/restore b/scripts/restore index 21ebd6d..3762652 100644 --- a/scripts/restore +++ b/scripts/restore @@ -174,8 +174,8 @@ ynh_print_ON # Get public IP and set as external IP for coturn # note : '|| true' is used to ignore the errors if we can't get the public ipv4 or ipv6 -public_ip4="$(curl ip.yunohost.org)" || true -public_ip6="$(curl ipv6.yunohost.org)" || true +public_ip4="$(curl -s ip.yunohost.org)" || true +public_ip6="$(curl -s ipv6.yunohost.org)" || true turn_external_ip="" if [ -n "$public_ip4" ] && ynh_validate_ip4 --ip_address="$public_ip4" diff --git a/scripts/upgrade b/scripts/upgrade index 03b370b..b836c65 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -337,8 +337,8 @@ ynh_script_progression --message="Updating coturn config..." --weight=1 # Get public IP and set as external IP for coturn # note : '|| true' is used to ignore the errors if we can't get the public ipv4 or ipv6 -public_ip4="$(curl ip.yunohost.org)" || true -public_ip6="$(curl ipv6.yunohost.org)" || true +public_ip4="$(curl -s ip.yunohost.org)" || true +public_ip6="$(curl -s ipv6.yunohost.org)" || true turn_external_ip="" if [ -n "$public_ip4" ] && ynh_validate_ip4 --ip_address="$public_ip4"