powerdns-admin/docker/PowerDNS-Admin/docker-entrypoint.sh
2018-03-28 11:31:04 +02:00

13 lines
217 B
Bash
Executable File

#!/bin/sh
set -e
if [ "$WAITFOR_DB" -a ! -f "$APP_PATH/config.py" ]; then
cp "$APP_PATH/config_template_docker.py" "$APP_PATH/config.py"
fi
cd $APP_PATH && python create_db.py
# Start PowerDNS Admin
exec "$@"