mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-07-29 00:24:16 +02:00
Allow all users to read the version file
Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
parent
7e5d9db6b7
commit
e579397f51
@ -12,6 +12,9 @@ FTL_PID_FILE="$(getFTLConfigValue files.pid)"
|
|||||||
# Ensure that permissions are set so that pihole-FTL can edit all necessary files
|
# Ensure that permissions are set so that pihole-FTL can edit all necessary files
|
||||||
mkdir -p /var/log/pihole
|
mkdir -p /var/log/pihole
|
||||||
chown -R pihole:pihole /etc/pihole/ /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)
|
# allow pihole to access subdirs in /etc/pihole (sets execution bit on dirs)
|
||||||
find /etc/pihole/ /var/log/pihole/ -type d -exec chmod 0755 {} +
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user