mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-03-03 15:28:28 +00:00
Permissions on versions file should be 640
Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
parent
97d136d1f4
commit
1d7277da39
2 changed files with 1 additions and 4 deletions
|
@ -50,7 +50,7 @@ rm -f "/etc/pihole/localversions"
|
||||||
# Create new versions file if it does not exist
|
# Create new versions file if it does not exist
|
||||||
VERSION_FILE="/etc/pihole/versions"
|
VERSION_FILE="/etc/pihole/versions"
|
||||||
touch "${VERSION_FILE}"
|
touch "${VERSION_FILE}"
|
||||||
chmod 644 "${VERSION_FILE}"
|
chmod 640 "${VERSION_FILE}"
|
||||||
|
|
||||||
# if /pihole.docker.tag file exists, we will use it's value later in this script
|
# if /pihole.docker.tag file exists, we will use it's value later in this script
|
||||||
DOCKER_TAG=$(cat /pihole.docker.tag 2>/dev/null)
|
DOCKER_TAG=$(cat /pihole.docker.tag 2>/dev/null)
|
||||||
|
|
|
@ -23,9 +23,6 @@ chmod 0644 /etc/pihole/logrotate
|
||||||
# allow all users to enter the directories
|
# allow all users to enter the directories
|
||||||
chmod 0755 /etc/pihole /var/log/pihole
|
chmod 0755 /etc/pihole /var/log/pihole
|
||||||
|
|
||||||
# allow all users read version file
|
|
||||||
chmod 0664 /etc/pihole/versions
|
|
||||||
|
|
||||||
# allow pihole to access subdirs in /etc/pihole (sets execution bit on dirs)
|
# allow pihole to access subdirs in /etc/pihole (sets execution bit on dirs)
|
||||||
# credits https://stackoverflow.com/a/11512211
|
# credits https://stackoverflow.com/a/11512211
|
||||||
find /etc/pihole/ -type d -exec chmod 0755 {} \;
|
find /etc/pihole/ -type d -exec chmod 0755 {} \;
|
||||||
|
|
Loading…
Add table
Reference in a new issue