sarlink-portal-api/entrypoint.prod.sh
2025-01-20 14:33:03 +05:00

14 lines
205 B
Bash
Executable File

#!/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 "$@"