UnisKB/installer/run-maxkb.sh

10 lines
254 B
Bash
Raw Normal View History

2024-03-15 05:03:01 +00:00
#!/bin/bash
2024-08-22 08:26:00 +00:00
rm -f /opt/maxkb/app/tmp/*.pid
2024-04-15 11:06:42 +00:00
# Start postgresql
2024-03-15 05:03:01 +00:00
docker-entrypoint.sh postgres &
2024-03-15 09:54:59 +00:00
sleep 10
2024-04-15 11:06:42 +00:00
# Wait postgresql
2024-03-15 05:03:01 +00:00
until pg_isready --host=127.0.0.1; do sleep 1 && echo "waiting for postgres"; done
# Start MaxKB
2024-03-15 09:26:25 +00:00
python /opt/maxkb/app/main.py start