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

fix script

This commit is contained in:
oiseauroch 2023-02-24 12:32:03 +01:00
parent e433985ca6
commit 4e175088b8

View file

@ -404,15 +404,15 @@ 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
until [ "" != "$($garage_command node id -q 2>/dev/null | cut -d '@' -f1)" ] ; do
i=$(( i + 1 ))
if [ $i -gt 30 ]
then
ynh_die --message="unable to get node id"
fi
sleep 1
node_id=$($garage_command node id -q 2>/dev/null | cut -d '@' -f1)
done
node_id=$($garage_command node id -q 2>/dev/null | cut -d '@' -f1)
ynh_app_setting_set --app=$app --key=node_id --value=$node_id