maubot/docker/run.sh
2020-02-10 11:34:49 -07:00

12 lines
229 B
Bash
Executable file

#!/bin/sh
cd /opt/maubot
if [ ! -f /config/config.yaml ]; then
echo "Config file not found."
exit
fi
mkdir -p /data/trash /data/dbs
alembic -x config=/config/config.yaml upgrade head
python3 -m maubot -c /config/config.yaml