diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index b7c33c8..208e3e9 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -7,9 +7,6 @@ if [ "${PDNS_gmysql_host:-}" != "" ]; then SQL_COMMAND="mysql -h ${PDNS_gmysql_host} -P ${PDNS_gmysql_port} -u ${PDNS_gmysql_user} -p${PDNS_gmysql_password} -D ${PDNS_gmysql_dbname}" - # Fix DB schema - sed -i 's/CREATE TABLE/CREATE TABLE IF NOT EXISTS/g ; s/CREATE UNIQUE INDEX/CREATE UNIQUE INDEX IF NOT EXISTS/g ; s/CREATE INDEX/CREATE INDEX IF NOT EXISTS/g' /usr/share/doc/pdns/schema.mysql.sql - # Initialize DB if needed $SQL_COMMAND