nopaque/docker-entrypoint.sh

14 lines
254 B
Bash
Raw Normal View History

2019-09-05 14:39:50 +00:00
#!/bin/sh
if [ $# -eq 0 ]
then
venv/bin/python opaque.py
else
2019-09-06 09:38:35 +00:00
if [[ $1 == "--setup-database" ]]
then
2019-09-06 09:38:35 +00:00
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