nopaque/docker-entrypoint.sh
2019-09-05 16:39:50 +02:00

16 lines
235 B
Bash
Executable File

#!/bin/sh
if [ $# -eq 0 ]
then
# If no argument is given, start Opaque
venv/bin/python opaque.py
else
if [[ $1 == "--create-db" ]]
then
source venv/bin/activate
flask db init
flask db upgrade
flask foo
fi
fi