From 11b537974a2177668d9c4ea319ad8a11e697ba43 Mon Sep 17 00:00:00 2001 From: Christopher Date: Wed, 14 Aug 2024 11:39:56 -0500 Subject: [PATCH] chore: Improve permissions handling in pihole-unbound Dockerfile for Unbound and Pi-hole configuration files --- pihole-unbound/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pihole-unbound/Dockerfile b/pihole-unbound/Dockerfile index 811babc..004e916 100644 --- a/pihole-unbound/Dockerfile +++ b/pihole-unbound/Dockerfile @@ -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