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

Update install

This commit is contained in:
Éric Gaspar 2023-04-23 12:54:38 +02:00
parent 03bd39519e
commit 3bdb5999ae

View file

@ -28,11 +28,10 @@ chmod +x $install_dir/smp-server
pushd "$install_dir"
public_ip4="$(curl -s ip.yunohost.org)" || true
public_ip6="$(curl -s ipv6.yunohost.org)" || true
#ynh_app_setting_set --app=$app --key=public_ip4 --value=$public_ip4
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_ip4}/${public_ip6}"
then
external-ip=${public_ip4}/${public_ip6}
fi
./smp-server init --no-password --ip $external-ip -y