diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index 822ccb4..b495b5b 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -1,5 +1,6 @@ * Limitations : * This application is not usable if you're not part of a cluster with minimun 3 other nodes + * If you are behind a nat and use upnp to configure your port redirection, you may need to add peers via config panel instead of during installation and/or create a permanent redirection in your router/box * infos you should be aware of: * This application provide a node that you can connect to a garage cluster. Few option are manageable by the config panel for the current node but IT DOESN'T offer simpler way to manage bucket and keys. You have to do it by command line or let an other node managing it. diff --git a/scripts/_common.sh b/scripts/_common.sh index 3e0c238..bc68cc1 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -12,9 +12,6 @@ pkg_dependencies_virtualisation="qemu-utils e2fsprogs" GARAGE_VERSION="0.8.0" -get_ip() { - curl ip.me -} # inspired by restic helper install_garage () { architecture=$(uname -m) diff --git a/scripts/install b/scripts/install index 9d075df..52b1c14 100755 --- a/scripts/install +++ b/scripts/install @@ -24,10 +24,6 @@ ynh_abort_if_errors # RETRIEVE ARGUMENTS FROM THE MANIFEST #================================================= -#port mandatory for garage -ip=$(get_ip) - - domain=$YNH_APP_ARG_DOMAIN rpc_secret=$YNH_APP_ARG_RPC_SECRET bootstrap_peers=$YNH_APP_ARG_BOOTSTRAP_PEERS @@ -406,6 +402,7 @@ ynh_script_progression --message="Configuring garage..." --weight=1 garage_command="$final_path/garage -c $final_path/garage.toml" +i=0 # sometimes server need some time to start until [ "" = "$($garage_command node id -q 2>/dev/null | cut -d '@' -f1)" ] ; do i=$(( i + 1 ))