Fix indentation
Some checks are pending
CodeQL / Analyze (pull_request) Waiting to run
Test Supported Distributions / smoke-tests (pull_request) Waiting to run
Test Supported Distributions / distro-test (alpine_3_21) (pull_request) Blocked by required conditions
Test Supported Distributions / distro-test (alpine_3_22) (pull_request) Blocked by required conditions
Test Supported Distributions / distro-test (centos_10) (pull_request) Blocked by required conditions
Test Supported Distributions / distro-test (centos_9) (pull_request) Blocked by required conditions
Test Supported Distributions / distro-test (debian_11) (pull_request) Blocked by required conditions
Test Supported Distributions / distro-test (debian_12) (pull_request) Blocked by required conditions
Test Supported Distributions / distro-test (debian_13) (pull_request) Blocked by required conditions
Test Supported Distributions / distro-test (fedora_40) (pull_request) Blocked by required conditions
Test Supported Distributions / distro-test (fedora_41) (pull_request) Blocked by required conditions
Test Supported Distributions / distro-test (fedora_42) (pull_request) Blocked by required conditions
Test Supported Distributions / distro-test (ubuntu_20) (pull_request) Blocked by required conditions
Test Supported Distributions / distro-test (ubuntu_22) (pull_request) Blocked by required conditions
Test Supported Distributions / distro-test (ubuntu_24) (pull_request) Blocked by required conditions

Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
yubiuser
2025-10-24 21:07:12 +02:00
committed by GitHub
parent 11344c39f5
commit 527895a377

View File

@@ -736,9 +736,9 @@ gravity_DownloadBlocklistFromUrl() {
download=false download=false
else else
if [ "$(id -un)" == "root" ]; then if [ "$(id -un)" == "root" ]; then
# If we are root, we need to check if the pihole user has read permission # If we are root, we need to check if the pihole user has read permission
# otherwise, we might read files that the pihole user should not be able to read # otherwise, we might read files that the pihole user should not be able to read
if sudo -u pihole test -r "${file_path}"; then if sudo -u pihole test -r "${file_path}"; then
echo -e "${OVER} ${INFO} Using local file ${file_path}" echo -e "${OVER} ${INFO} Using local file ${file_path}"
else else
echo -e "${OVER} ${CROSS} Cannot read file (user 'pihole' lacks read permission)" echo -e "${OVER} ${CROSS} Cannot read file (user 'pihole' lacks read permission)"