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:
parent
beafedeba4
commit
e433985ca6
3 changed files with 2 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
||||||
* Limitations :
|
* Limitations :
|
||||||
* This application is not usable if you're not part of a cluster with minimun 3 other nodes
|
* 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:
|
* 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.
|
* 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.
|
||||||
|
|
|
@ -12,9 +12,6 @@ pkg_dependencies_virtualisation="qemu-utils e2fsprogs"
|
||||||
|
|
||||||
GARAGE_VERSION="0.8.0"
|
GARAGE_VERSION="0.8.0"
|
||||||
|
|
||||||
get_ip() {
|
|
||||||
curl ip.me
|
|
||||||
}
|
|
||||||
# inspired by restic helper
|
# inspired by restic helper
|
||||||
install_garage () {
|
install_garage () {
|
||||||
architecture=$(uname -m)
|
architecture=$(uname -m)
|
||||||
|
|
|
@ -24,10 +24,6 @@ ynh_abort_if_errors
|
||||||
# RETRIEVE ARGUMENTS FROM THE MANIFEST
|
# RETRIEVE ARGUMENTS FROM THE MANIFEST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
#port mandatory for garage
|
|
||||||
ip=$(get_ip)
|
|
||||||
|
|
||||||
|
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
rpc_secret=$YNH_APP_ARG_RPC_SECRET
|
rpc_secret=$YNH_APP_ARG_RPC_SECRET
|
||||||
bootstrap_peers=$YNH_APP_ARG_BOOTSTRAP_PEERS
|
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"
|
garage_command="$final_path/garage -c $final_path/garage.toml"
|
||||||
|
|
||||||
|
i=0
|
||||||
# sometimes server need some time to start
|
# sometimes server need some time to start
|
||||||
until [ "" = "$($garage_command node id -q 2>/dev/null | cut -d '@' -f1)" ] ; do
|
until [ "" = "$($garage_command node id -q 2>/dev/null | cut -d '@' -f1)" ] ; do
|
||||||
i=$(( i + 1 ))
|
i=$(( i + 1 ))
|
||||||
|
|
Loading…
Add table
Reference in a new issue