From 1828687c094482be6fb16bbee58a78152b17541a Mon Sep 17 00:00:00 2001 From: oiseauroch Date: Wed, 22 Feb 2023 17:04:47 +0100 Subject: [PATCH] improve node_id detection --- scripts/install | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 232d760..9d075df 100755 --- a/scripts/install +++ b/scripts/install @@ -406,9 +406,8 @@ ynh_script_progression --message="Configuring garage..." --weight=1 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 -until [ -n "$node_id" ] ; do +until [ "" = "$($garage_command node id -q 2>/dev/null | cut -d '@' -f1)" ] ; do i=$(( i + 1 )) if [ $i -gt 30 ] then