mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-08 11:25:40 +00:00
14 lines
234 B
Bash
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 "$@"
|