mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
10 lines
254 B
Bash
10 lines
254 B
Bash
#!/bin/bash
|
|
rm -f /opt/maxkb/app/tmp/*.pid
|
|
# Start postgresql
|
|
docker-entrypoint.sh postgres &
|
|
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 |