1
0
mirror of https://github.com/pi-hole/pi-hole.git synced 2025-04-08 17:05:17 +02:00

Allow all users to read the version file

Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
Christian König 2025-02-24 20:03:44 +01:00
parent 7e5d9db6b7
commit e579397f51
No known key found for this signature in database

@ -12,6 +12,9 @@ FTL_PID_FILE="$(getFTLConfigValue files.pid)"
# Ensure that permissions are set so that pihole-FTL can edit all necessary files
mkdir -p /var/log/pihole
chown -R pihole:pihole /etc/pihole/ /var/log/pihole/
# allow all users read version file
chmod 0664 /etc/pihole/versions
# allow pihole to access subdirs in /etc/pihole (sets execution bit on dirs)
find /etc/pihole/ /var/log/pihole/ -type d -exec chmod 0755 {} +
# Set all files (except TLS-related ones) to u+rw g+r