From 8a073604a5a032c482c5b9e10783b62fe1d7e2b2 Mon Sep 17 00:00:00 2001 From: chr0m3kanra <88404606+chr0m3kanra@users.noreply.github.com> Date: Tue, 15 Feb 2022 15:18:47 +0000 Subject: [PATCH] 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. --- gravity.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index 9c11fa98..0a751ff2 100755 --- a/gravity.sh +++ b/gravity.sh @@ -1012,8 +1012,10 @@ fi update_gravity_timestamp # Ensure proper permissions are set for the database +chown root:pihole "${piholeDir}" +chmod 0775 "${piholeDir}" chown pihole:pihole "${gravityDBfile}" -chmod g+w "${piholeDir}" "${gravityDBfile}" +chmod 0664 "${gravityDBfile}" # Compute numbers to be displayed gravity_ShowCount