mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-02-21 18:32:01 +00:00
14 lines
205 B
Bash
14 lines
205 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
if [ "$DATABASE" = "postgres" ]
|
||
|
then
|
||
|
echo "Waiting for postgres..."
|
||
|
|
||
|
while ! nc -z $POSTGRES_HOST $POSTGRES_PORT; do
|
||
|
sleep 0.1
|
||
|
done
|
||
|
|
||
|
echo "PostgreSQL started"
|
||
|
fi
|
||
|
|
||
|
exec "$@"
|