Use setFTLConfigValue to set privacy level and logging. The function is sourced already at this point from utils.sh

Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
Christian König 2024-10-18 20:22:13 +02:00
parent 3956ca49b6
commit 6e905a7f80
No known key found for this signature in database

View file

@ -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