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:
parent
03bd39519e
commit
3bdb5999ae
1 changed files with 2 additions and 3 deletions
|
@ -28,11 +28,10 @@ chmod +x $install_dir/smp-server
|
||||||
pushd "$install_dir"
|
pushd "$install_dir"
|
||||||
public_ip4="$(curl -s ip.yunohost.org)" || true
|
public_ip4="$(curl -s ip.yunohost.org)" || true
|
||||||
public_ip6="$(curl -s ipv6.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" )
|
if ( [[ -n "$public_ip4" ]] && ynh_validate_ip4 --ip_address="$public_ip4" || [[ -n "$public_ip6" ]] && ynh_validate_ip6 --ip_address="$public_ip6" )
|
||||||
then
|
then
|
||||||
echo "external-ip=${public_ip4}/${public_ip6}"
|
external-ip=${public_ip4}/${public_ip6}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./smp-server init --no-password --ip $external-ip -y
|
./smp-server init --no-password --ip $external-ip -y
|
||||||
|
|
Loading…
Add table
Reference in a new issue