timeout node connect
This commit is contained in:
parent
353e7cd02b
commit
7cd0be6339
|
@ -48,7 +48,13 @@ garage_connect() {
|
|||
$command node connect "$peer"
|
||||
sleep 2
|
||||
# wait until layout is updated
|
||||
local i=0
|
||||
until $command layout show 2>/dev/null | grep "${peer:0:15}"; do
|
||||
i=$(( i + 1 ))
|
||||
if [ $i -gt 30 ]
|
||||
then
|
||||
ynh_die --message="unable to get layout from remove peer"
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
}
|
||||
|
|
|
@ -345,7 +345,6 @@ ynh_script_progression --message="Integrating service in YunoHost..." --weight=
|
|||
### - And the section "INTEGRATE SERVICE IN YUNOHOST" in the upgrade script
|
||||
|
||||
yunohost service add --needs_exposed_ports $port --description="s3 storage" --log="/var/log/$app/$app.log" $app
|
||||
yunohost firewall upnp reload
|
||||
|
||||
### Additional options starting with 3.8:
|
||||
###
|
||||
|
|
Loading…
Reference in New Issue
Block a user