From 3bdb5999ae4abac56668c57083e28b064edddca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 23 Apr 2023 12:54:38 +0200 Subject: [PATCH] Update install --- scripts/install | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 3ad0c4e..9153162 100755 --- a/scripts/install +++ b/scripts/install @@ -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