mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
7 lines
258 B
Bash
7 lines
258 B
Bash
#!/bin/bash
|
|
|
|
mkdir -p /opt/maxkb/data/postgresql
|
|
echo "PostgreSQL starting..."
|
|
docker-entrypoint.sh postgres -c max_connections=${POSTGRES_MAX_CONNECTIONS} &
|
|
sleep 10
|
|
/usr/bin/wait-for-it.sh 127.0.0.1:5432 --timeout=120 --strict -- echo "PostgreSQL started." |