1
0
mirror of https://github.com/pi-hole/docker-pi-hole.git synced 2024-06-21 06:56:53 +02:00

rechown /opt/pihole and pihole command in case of UID changing

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2022-01-20 17:10:19 +00:00
parent eed203530e
commit 510ca0b873
No known key found for this signature in database
GPG Key ID: 872950F3ECF2B173

View File

@ -26,6 +26,10 @@ prepare_configs() {
chown pihole:root /etc/lighttpd
# In case of `pihole` UID being changed, re-chown the pihole scripts and pihole commmand
chown -R pihole:root "${PI_HOLE_INSTALL_DIR}"
chown pihole:root "${PI_HOLE_BIN_DIR}/pihole"
set -e
# Update version numbers
pihole updatechecker