1
0
Fork 0
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:
oiseauroch 2023-02-22 17:04:47 +01:00
parent a2d11dfd68
commit 1828687c09

View file

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