From 6e905a7f80d2bcfb0f39095536a47b6b9a368bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Fri, 18 Oct 2024 20:22:13 +0200 Subject: [PATCH] Use setFTLConfigValue to set privacy level and logging. The function is sourced already at this point from utils.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- automated install/basic-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index ec09b8ed..34e77ea0 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -2396,10 +2396,10 @@ main() { # needs to be done after FTL service has been started, otherwise pihole.toml does not exist # set on fresh installations by setPrivacyLevel() and setLogging( if [ -n "${QUERY_LOGGING}" ]; then - pihole-FTL --config dns.queryLogging "${QUERY_LOGGING}" + setFTLConfigValue "dns.queryLogging" "${QUERY_LOGGING}" fi if [ -n "${PRIVACY_LEVEL}" ]; then - pihole-FTL --config misc.privacylevel "${PRIVACY_LEVEL}" + setFTLConfigValue "misc.privacylevel" "${PRIVACY_LEVEL}" fi # Download and compile the aggregated block list