mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
16 lines
313 B
Bash
16 lines
313 B
Bash
#!/bin/bash
|
|
|
|
# Start postgress
|
|
docker-entrypoint.sh postgres &
|
|
|
|
# Wait postgress
|
|
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 &
|
|
|
|
# Wait for any process to exit
|
|
wait -n
|
|
|
|
# Exit with status of process that exited first
|
|
exit $? |