mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-22 07:10:19 +00:00
Logrotate config file needs to be owned by root
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
2deadb2e4a
commit
d77dbf736c
2 changed files with 6 additions and 1 deletions
|
@ -1483,7 +1483,8 @@ installLogrotate() {
|
|||
return 2
|
||||
fi
|
||||
# Copy the file over from the local repo
|
||||
install -o pihole -g pihole -D -m 644 -T "${PI_HOLE_LOCAL_REPO}"/advanced/Templates/logrotate ${target}
|
||||
# Logrotate config file must be owned by root and not writable by group or other
|
||||
install -o root -g root -D -m 644 -T "${PI_HOLE_LOCAL_REPO}"/advanced/Templates/logrotate ${target}
|
||||
# Different operating systems have different user / group
|
||||
# settings for logrotate that makes it impossible to create
|
||||
# a static logrotate file that will work with e.g.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue