Update carousels, card hover, and IranBay branding.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
CONTAINER="${POSTGRES_CONTAINER:-ariyaway-postgres}"
|
||||
DB_USER="${POSTGRES_USER:-ariyaway}"
|
||||
DB_NAME="${POSTGRES_DB:-ariyaway}"
|
||||
MAX_ATTEMPTS="${POSTGRES_WAIT_ATTEMPTS:-30}"
|
||||
|
||||
for ((i = 1; i <= MAX_ATTEMPTS; i++)); do
|
||||
if docker exec "$CONTAINER" pg_isready -U "$DB_USER" -d "$DB_NAME" >/dev/null 2>&1; then
|
||||
echo "Postgres is ready."
|
||||
exit 0
|
||||
fi
|
||||
echo "Waiting for Postgres ($i/$MAX_ATTEMPTS)…"
|
||||
sleep 1
|
||||
done
|
||||
|
||||
echo "Postgres did not become ready in time." >&2
|
||||
exit 1
|
||||
Reference in New Issue
Block a user