mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-25 16:50:14 +00:00
Follow symlinks with find
Incorporating https://github.com/pi-hole/pi-hole/pull/5997 Signed-off-by: MichaIng <micha@dietpi.com>
This commit is contained in:
parent
65bcb24d0e
commit
0b380d671d
1 changed files with 3 additions and 3 deletions
6
advanced/Templates/pihole-FTL-prestart.sh
Normal file → Executable file
6
advanced/Templates/pihole-FTL-prestart.sh
Normal file → Executable file
|
@ -12,9 +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
|
||||
find /etc/pihole /var/log/pihole -type d -exec chmod 0755 {} +
|
||||
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 0600 {} +
|
||||
find /etc/pihole/ /var/log/pihole/ -type d -exec chmod 0755 {} +
|
||||
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 0600 {} +
|
||||
|
||||
# Logrotate config file need to be owned by root
|
||||
chown root:root /etc/pihole/logrotate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue