mirror of
https://github.com/YunoHost-Apps/garage_ynh.git
synced 2024-09-03 18:36:32 +02:00
improve node_id detection
This commit is contained in:
parent
a2d11dfd68
commit
1828687c09
1 changed files with 1 additions and 2 deletions
|
@ -406,9 +406,8 @@ 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"
|
||||||
|
|
||||||
node_id=$($garage_command node id -q 2>/dev/null | cut -d '@' -f1)
|
|
||||||
# sometimes server need some time to start
|
# sometimes server need some time to start
|
||||||
until [ -n "$node_id" ] ; do
|
until [ "" = "$($garage_command node id -q 2>/dev/null | cut -d '@' -f1)" ] ; do
|
||||||
i=$(( i + 1 ))
|
i=$(( i + 1 ))
|
||||||
if [ $i -gt 30 ]
|
if [ $i -gt 30 ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Reference in a new issue