projetAnsible/.vscode/entrypoint_backup.sh
2024-12-09 06:16:28 +01:00

12 lines
215 B
Bash

#!/bin/sh
# Install PostgreSQL client
apk add --no-cache postgresql-client
# Wait until the PostgreSQL server is ready
until pg_isready -h admin -U admin; do
echo "Waiting for PostgreSQL..."
sleep 2
done