mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-05 04:08:33 +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"
|
echo "### first run - setting up invidious database"
|
||||||
/usr/local/bin/docker-entrypoint.sh postgres &
|
/usr/local/bin/docker-entrypoint.sh postgres &
|
||||||
sleep 10
|
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"
|
>&2 echo "### Postgres is unavailable - waiting"
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user