1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

Wait for app to start at the end of the restore to avoid 502 error

This commit is contained in:
Alexandre Aubin 2020-07-01 18:46:50 +02:00 committed by JocelynDelalande
parent 41765a8f48
commit c4e0df7eeb

View file

@ -48,3 +48,11 @@ ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ./db.sql
systemctl reload nginx
systemctl restart supervisor
supervisorctl restart budget
# 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