1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-03-06 19:26:13 +00:00

Add missing trailing / when setting permissions of /etc/pihole (#5997)

This commit is contained in:
yubiuser 2025-02-24 17:24:10 +01:00 committed by GitHub
commit 9840b42847
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ chmod 0755 /etc/pihole /var/log/pihole
# allow pihole to access subdirs in /etc/pihole (sets execution bit on dirs)
# credits https://stackoverflow.com/a/11512211
find /etc/pihole -type d -exec chmod 0755 {} \;
find /etc/pihole/ -type d -exec chmod 0755 {} \;
# Touch files to ensure they exist (create if non-existing, preserve if existing)
[ -f "${FTL_PID_FILE}" ] || install -D -m 644 -o pihole -g pihole /dev/null "${FTL_PID_FILE}"