mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-04 19:58:31 +00:00
Update entrypoint.postgres.sh
This commit is contained in:
parent
29cdfb3298
commit
360c156a6d
@ -5,7 +5,7 @@ if [ ! -f /var/lib/postgresql/data/setupFinished ]; then
|
||||
echo "### first run - setting up invidious database"
|
||||
/usr/local/bin/docker-entrypoint.sh postgres &
|
||||
sleep 10
|
||||
until runuser -l postgres -c 'pg_isready' 2>/dev/null; do
|
||||
until su postgres -c 'pg_isready' 2>/dev/null; do
|
||||
>&2 echo "### Postgres is unavailable - waiting"
|
||||
sleep 5
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user