1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garage_ynh.git synced 2024-09-03 18:36:32 +02:00

remove unused ip value

fix i not defined
This commit is contained in:
oiseauroch 2023-02-24 11:00:56 +01:00
parent beafedeba4
commit e433985ca6
3 changed files with 2 additions and 7 deletions

View file

@ -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.

View file

@ -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)

View file

@ -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 ))