Skip to content

Commit

Permalink
chore: Improve permissions handling in pihole-unbound Dockerfile for …
Browse files Browse the repository at this point in the history
…Unbound and Pi-hole configuration files
  • Loading branch information
dragonfire1119 committed Aug 14, 2024
1 parent 52e77fc commit 11b5379
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pihole-unbound/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ COPY unbound/root.hints /var/lib/unbound/root.hints
# Set permissions for Unbound
RUN chown -R unbound:unbound /var/lib/unbound

# # Copy Unbound configuration files
# Copy Unbound configuration files
COPY unbound/unbound.conf /etc/unbound/unbound.conf

# Copy Pi-hole configuration files
COPY pihole/setupVars.conf /etc/pihole/setupVars.conf

# Set correct permissions for Pi-hole files
RUN chown -R www-data:www-data /etc/pihole && \
chmod -R 755 /etc/pihole

# Entrypoint
ENTRYPOINT ./s6-init

Expand Down

0 comments on commit 11b5379

Please sign in to comment.