nopaque/docker-entrypoint.sh
2019-09-13 09:35:20 +02:00

14 lines
257 B
Bash
Executable File

#!/bin/sh
if [ $# -eq 0 ]
then
venv/bin/python -u opaque.py
else
if [[ $1 == "--setup-database" ]]
then
venv/bin/python -m flask db init
venv/bin/python -m flask db upgrade
venv/bin/python -m flask insert-initial-database-entries
fi
fi