powerdns-admin/docker/Production/entrypoint.sh
2019-07-12 21:03:19 +08:00

14 lines
234 B
Bash

#!/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
flask db upgrade
fi
exec "$@"