From 1b4500184b59b709ef61925ba7bf640c86f1cfd3 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 21 Dec 2019 23:03:49 +0100 Subject: [PATCH] Ensure that the blacklist file is readable --- entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 30f95fe..5a88f14 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -60,6 +60,7 @@ init() { domain_blacklist_file="${LISTS_DIR}/blacklist.txt" domain_blacklist_configuration="" if [ -s "$domain_blacklist_file" ]; then + chown _encrypted-dns:_encrypted_dns "$domain_blacklist_file" domain_blacklist_configuration="domain_blacklist = \"${domain_blacklist_file}\"" fi @@ -132,6 +133,7 @@ legacy_compat() { mkdir -p "${LISTS_DIR}" mv -f "${LISTS_DIR}/blacklist.txt" "${LISTS_DIR}/blacklist.txt.migrated" 2>/dev/null || : ln -s "${LEGACY_LISTS_DIR}/blacklist.txt" "${LISTS_DIR}/blacklist.txt" 2>/dev/null || : + chown _encrypted-dns:_encrypted-dns "${LEGACY_LISTS_DIR}/blacklist.txt" fi }