1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-03-06 11:16:21 +00:00

Fix find command syntax, remove log dir from search

Signed-off-by: Jack'lul <8418678+jacklul@users.noreply.github.com>
This commit is contained in:
Jack'lul 2025-03-01 14:43:36 +01:00 committed by GitHub
parent f207385269
commit 0130f7be74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,7 +17,7 @@ find /etc/pihole/ /var/log/pihole/ -type d -exec chmod 0755 {} +
# Set all files (except TLS-related ones) to u+rw g+r # Set all files (except TLS-related ones) to u+rw g+r
find /etc/pihole/ /var/log/pihole/ -type f ! \( -name '*.pem' -o -name '*.crt' \) -exec chmod 0640 {} + find /etc/pihole/ /var/log/pihole/ -type f ! \( -name '*.pem' -o -name '*.crt' \) -exec chmod 0640 {} +
# Set TLS-related files to a more restrictive u+rw *only* (they may contain private keys) # Set TLS-related files to a more restrictive u+rw *only* (they may contain private keys)
find /etc/pihole/ /var/log/pihole/ -type f -name '*.pem' -o -name '*.crt' -exec chmod 0600 {} + find /etc/pihole/ -type f \( -name '*.pem' -o -name '*.crt' \) -exec chmod 0600 {} +
# Logrotate config file need to be owned by root # Logrotate config file need to be owned by root
chown root:root /etc/pihole/logrotate chown root:root /etc/pihole/logrotate