mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-14 09:30:27 +00:00
13 lines
217 B
Bash
13 lines
217 B
Bash
|
#!/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 "$@"
|