mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-18 05:10:13 +00:00
Set the permissions for the database explicitly
This makes the gravity.sh script set the right permissions for the pihole directory and the database file explicitly.
This commit is contained in:
parent
6ffa2ba1b2
commit
8a073604a5
1 changed files with 3 additions and 1 deletions
|
@ -1012,8 +1012,10 @@ fi
|
||||||
update_gravity_timestamp
|
update_gravity_timestamp
|
||||||
|
|
||||||
# Ensure proper permissions are set for the database
|
# Ensure proper permissions are set for the database
|
||||||
|
chown root:pihole "${piholeDir}"
|
||||||
|
chmod 0775 "${piholeDir}"
|
||||||
chown pihole:pihole "${gravityDBfile}"
|
chown pihole:pihole "${gravityDBfile}"
|
||||||
chmod g+w "${piholeDir}" "${gravityDBfile}"
|
chmod 0664 "${gravityDBfile}"
|
||||||
|
|
||||||
# Compute numbers to be displayed
|
# Compute numbers to be displayed
|
||||||
gravity_ShowCount
|
gravity_ShowCount
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue