From 6001fe34ec3d3ad652a7013f467d1948efb3e096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Sun, 8 Oct 2023 23:03:33 +0200 Subject: [PATCH] Set owner of gravity output files to pihole MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- gravity.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gravity.sh b/gravity.sh index 9133d33d..4f87c1d7 100755 --- a/gravity.sh +++ b/gravity.sh @@ -488,6 +488,10 @@ compareLists() { # We assume here it was changed upstream database_adlist_status "${adlistID}" "1" fi + + # set owner of the file to pihole + chown pihole:pihole "${target}.sha1" + } # Download specified URL and perform checks on HTTP status and file content @@ -621,6 +625,9 @@ gravity_DownloadBlocklistFromUrl() { database_adlist_status "${adlistID}" "4" fi fi + + # set owner of the file to pihole + chown pihole:pihole "${saveLocation}" } # Parse source files into domains format