Make a symlink between /etc/pdns and /etc/powerdns
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2024-01-08 15:43:44 +01:00
parent 7348d2b05f
commit c67f43c7a5
2 changed files with 2 additions and 5 deletions

View File

@ -18,7 +18,8 @@ RUN apk add --no-cache \
# Start script
COPY --from=git /data/dockerdata/startup.py /usr/sbin/pdns_server-startup
RUN sed -i "s@env -S python3 -u@env python3@" /usr/sbin/pdns_server-startup
COPY --from=git /data/dockerdata/pdns.conf /etc/pdns/pdns.conf
RUN sed -i "s@env -S python3 -u@env python3@" /usr/sbin/pdns_server-startup && ln -s /etc/pdns /etc/powerdns
COPY --from=git /data/dockerdata/pdns.conf /etc/powerdns/
RUN mkdir -p /etc/powerdns/pdns.d /var/run/pdns /var/lib/powerdns /etc/powerdns/templates.d
@ -30,8 +31,6 @@ USER pdns
# Set up database - this needs to be smarter
RUN sqlite3 /var/lib/powerdns/pdns.sqlite3 < /usr/share/doc/pdns/schema.sqlite3.sql
COPY sqlite-backend.conf /etc/powerdns/pdns.d
# Default DNS ports
EXPOSE 53/udp
EXPOSE 53/tcp

View File

@ -1,2 +0,0 @@
launch=gsqlite3
gsqlite3-database=/var/lib/powerdns/pdns.sqlite3