UnisKB/installer/start-postgres.sh

7 lines
246 B
Bash
Raw Normal View History

2025-04-18 06:10:16 +00:00
#!/bin/bash
mkdir -p /opt/maxkb/data/postgresql
2025-04-18 07:42:59 +00:00
echo "PostgreSQL starting..."
2025-04-18 06:10:16 +00:00
docker-entrypoint.sh postgres -c max_connections=${POSTGRES_MAX_CONNECTIONS} &
sleep 10
2025-04-21 03:15:22 +00:00
wait-for-it 127.0.0.1:5432 --timeout=120 --strict -- echo "PostgreSQL started."