1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Remove double [[

This commit is contained in:
Kayou 2019-05-01 11:22:49 +02:00 committed by GitHub
parent a2e19998d4
commit 353d54ac7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,14 +200,14 @@ ynh_replace_string --match_string=__CLI_PORT__ --replace_string=$cli_port --targ
public_ip4="$(curl ip.yunohost.org)" || true public_ip4="$(curl ip.yunohost.org)" || true
public_ip6="$(curl ipv6.yunohost.org)" || true public_ip6="$(curl ipv6.yunohost.org)" || true
if [[ -n "$public_ip4" ]] && ynh_validate_ip4 --ip_address="$public_ip4" if [ -n "$public_ip4" ] && ynh_validate_ip4 --ip_address="$public_ip4"
then then
ynh_replace_string --match_string='__IPV4__' --replace_string="$public_ip4" --target_file="$coturn_config_path" ynh_replace_string --match_string='__IPV4__' --replace_string="$public_ip4" --target_file="$coturn_config_path"
else else
ynh_replace_string --match_string='__IPV4__,' --replace_string="" --target_file="$coturn_config_path" ynh_replace_string --match_string='__IPV4__,' --replace_string="" --target_file="$coturn_config_path"
fi fi
if [[ -n "$public_ip6" ]] && ynh_valide_ip6 --ip_address="$public_ip6" if [ -n "$public_ip6" ] && ynh_valide_ip6 --ip_address="$public_ip6"
then then
ynh_replace_string --match_string='__IPV6__' --replace_string="$public_ip6" --target_file="$coturn_config_path" ynh_replace_string --match_string='__IPV6__' --replace_string="$public_ip6" --target_file="$coturn_config_path"
else else