1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/coturn_ynh.git synced 2024-09-03 18:16:32 +02:00

Update install

This commit is contained in:
ericgaspar 2021-01-25 13:45:30 +01:00
parent 42873a0139
commit a11b173ec3
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -133,14 +133,19 @@ ynh_print_ON
public_ip4="$(curl ip.yunohost.org)" || true
public_ip6="$(curl ipv6.yunohost.org)" || true
if [ -n "$public_ip4" ] && ynh_validate_ip4 --ip_address="$public_ip4"
then
echo "external-ip=$public_ip4" >> "$coturn_config_path"
fi
# if [ -n "$public_ip4" ] && ynh_validate_ip4 --ip_address="$public_ip4"
# then
# echo "external-ip=$public_ip4" >> "$coturn_config_path"
# fi
if [ -n "$public_ip6" ] && ynh_validate_ip6 --ip_address="$public_ip6"
# if [ -n "$public_ip6" ] && ynh_validate_ip6 --ip_address="$public_ip6"
# then
# echo "external-ip=$public_ip6" >> "$coturn_config_path"
# fi
if ( [[ -n "$public_ip4" ]] && ynh_validate_ip4 --ip_address="$public_ip4" || [[ -n "$public_ip6" ]] && ynh_validate_ip6 --ip_address="$public_ip6" )
then
echo "external-ip=$public_ip6" >> "$coturn_config_path"
echo "external-ip=${public_ip4},${public_ip6}" >> "$coturn_config_path"
fi
ynh_store_file_checksum --file="$coturn_config_path"