mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
correct external-ip newline
This commit is contained in:
parent
e5e91f1562
commit
6185899fcf
3 changed files with 6 additions and 6 deletions
|
@ -303,12 +303,12 @@ public_ip6="$(curl -s ipv6.yunohost.org)" || true
|
|||
turn_external_ip=""
|
||||
if [ -n "$public_ip4" ] && ynh_validate_ip4 --ip_address="$public_ip4"
|
||||
then
|
||||
turn_external_ip+="external-ip="$public_ip4%"\n"
|
||||
turn_external_ip+="external-ip=$public_ip4"%'\n'
|
||||
fi
|
||||
|
||||
if [ -n "$public_ip6" ] && ynh_validate_ip6 --ip_address="$public_ip6"
|
||||
then
|
||||
turn_external_ip+="external-ip="$public_ip6%"\n"
|
||||
turn_external_ip+="external-ip=$public_ip6"$'\n'
|
||||
fi
|
||||
|
||||
ynh_add_config --template="turnserver.conf" --destination="/etc/matrix-$app/coturn.conf"
|
||||
|
|
|
@ -182,12 +182,12 @@ public_ip6="$(curl -s ipv6.yunohost.org)" || true
|
|||
turn_external_ip=""
|
||||
if [ -n "$public_ip4" ] && ynh_validate_ip4 --ip_address="$public_ip4"
|
||||
then
|
||||
turn_external_ip+="external-ip="$public_ip4%"\n"
|
||||
turn_external_ip+="external-ip=$public_ip4"$'\n'
|
||||
fi
|
||||
|
||||
if [ -n "$public_ip6" ] && ynh_validate_ip6 --ip_address="$public_ip6"
|
||||
then
|
||||
turn_external_ip+="external-ip="$public_ip6%"\n"
|
||||
turn_external_ip+="external-ip=$public_ip6"$'\n'
|
||||
fi
|
||||
|
||||
ynh_add_config --template="turnserver.conf" --destination="/etc/matrix-$app/coturn.conf"
|
||||
|
|
|
@ -358,12 +358,12 @@ public_ip6="$(curl -s ipv6.yunohost.org)" || true
|
|||
turn_external_ip=""
|
||||
if [ -n "$public_ip4" ] && ynh_validate_ip4 --ip_address="$public_ip4"
|
||||
then
|
||||
turn_external_ip+="external-ip="$public_ip4%"\n"
|
||||
turn_external_ip+="external-ip=$public_ip4"$'\n'
|
||||
fi
|
||||
|
||||
if [ -n "$public_ip6" ] && ynh_validate_ip6 --ip_address="$public_ip6"
|
||||
then
|
||||
turn_external_ip+="external-ip="$public_ip6%"\n"
|
||||
turn_external_ip+="external-ip=$public_ip6"$'\n'
|
||||
fi
|
||||
|
||||
ynh_add_config --template="turnserver.conf" --destination="/etc/matrix-$app/coturn.conf"
|
||||
|
|
Loading…
Add table
Reference in a new issue