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:
parent
e433985ca6
commit
4e175088b8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue