Re-add file/folder permissions

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2023-08-04 21:12:40 +02:00
parent a3ea2cd8c3
commit c360743d41
No known key found for this signature in database

View file

@ -18,6 +18,8 @@ mkdir -pm 0755 /run/pihole /var/log/pihole
[ -f /etc/pihole/dhcp.leases ] || install -m 644 -o pihole -g pihole /dev/null /etc/pihole/dhcp.leases
# Ensure that permissions are set so that pihole-FTL can edit all necessary files
chown -R pihole:pihole /run/pihole /etc/pihole /var/log/pihole
chmod -R 0640 /var/log/pihole
chmod -R 0660 /etc/pihole /run/pihole
# Backward compatibility for user-scripts that still expect log files in /var/log instead of /var/log/pihole
# Should be removed with Pi-hole v6.0