MaxKB/installer/run-maxkb.sh
2024-12-27 09:55:09 +08:00

10 lines
301 B
Bash

#!/bin/bash
rm -f /opt/maxkb/app/tmp/*.pid
# Start postgresql
docker-entrypoint.sh postgres -c max_connections=${POSTGRES_MAX_CONNECTIONS} &
sleep 10
# Wait postgresql
until pg_isready --host=127.0.0.1; do sleep 1 && echo "waiting for postgres"; done
# Start MaxKB
python /opt/maxkb/app/main.py start