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:
parent
a2e19998d4
commit
353d54ac7b
1 changed files with 2 additions and 2 deletions
|
@ -200,14 +200,14 @@ ynh_replace_string --match_string=__CLI_PORT__ --replace_string=$cli_port --targ
|
|||
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"
|
||||
if [ -n "$public_ip4" ] && ynh_validate_ip4 --ip_address="$public_ip4"
|
||||
then
|
||||
ynh_replace_string --match_string='__IPV4__' --replace_string="$public_ip4" --target_file="$coturn_config_path"
|
||||
else
|
||||
ynh_replace_string --match_string='__IPV4__,' --replace_string="" --target_file="$coturn_config_path"
|
||||
fi
|
||||
|
||||
if [[ -n "$public_ip6" ]] && ynh_valide_ip6 --ip_address="$public_ip6"
|
||||
if [ -n "$public_ip6" ] && ynh_valide_ip6 --ip_address="$public_ip6"
|
||||
then
|
||||
ynh_replace_string --match_string='__IPV6__' --replace_string="$public_ip6" --target_file="$coturn_config_path"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue