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:
parent
41765a8f48
commit
c4e0df7eeb
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue