PowerDNS-Admin/docker/Production/entrypoint.sh

14 lines
234 B
Bash
Raw Normal View History

2019-07-12 11:10:15 +02:00
#!/bin/bash
set -Eeuo pipefail
cd /opt/powerdns-admin
if [ ! -f ./config.py ]; then
cat ./config_template.py ./docker/Production/config_docker.py > ./config.py
fi
if [ "$1" == gunicorn ]; then
2019-07-12 15:03:19 +02:00
flask db upgrade
2019-07-12 11:10:15 +02:00
fi
exec "$@"