diff --git a/scripts/install b/scripts/install index 3e2cfaa..47a5cf0 100755 --- a/scripts/install +++ b/scripts/install @@ -115,3 +115,11 @@ sudo service supervisor restart # Reconfigure sso sudo yunohost app ssowatconf + +# Wait that gunicorn is ready to consider the install finished, that is to +# avoid HTTP 502 right after installation +for i in `seq 1 120` +do + test -S /tmp/budget.gunicorn.sock && break + sleep 1 +done