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:
parent
eed203530e
commit
510ca0b873
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user