mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-22 06:03:43 +00:00
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:
parent
3956ca49b6
commit
6e905a7f80
1 changed files with 2 additions and 2 deletions
|
@ -2396,10 +2396,10 @@ main() {
|
||||||
# needs to be done after FTL service has been started, otherwise pihole.toml does not exist
|
# needs to be done after FTL service has been started, otherwise pihole.toml does not exist
|
||||||
# set on fresh installations by setPrivacyLevel() and setLogging(
|
# set on fresh installations by setPrivacyLevel() and setLogging(
|
||||||
if [ -n "${QUERY_LOGGING}" ]; then
|
if [ -n "${QUERY_LOGGING}" ]; then
|
||||||
pihole-FTL --config dns.queryLogging "${QUERY_LOGGING}"
|
setFTLConfigValue "dns.queryLogging" "${QUERY_LOGGING}"
|
||||||
fi
|
fi
|
||||||
if [ -n "${PRIVACY_LEVEL}" ]; then
|
if [ -n "${PRIVACY_LEVEL}" ]; then
|
||||||
pihole-FTL --config misc.privacylevel "${PRIVACY_LEVEL}"
|
setFTLConfigValue "misc.privacylevel" "${PRIVACY_LEVEL}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Download and compile the aggregated block list
|
# Download and compile the aggregated block list
|
||||||
|
|
Loading…
Reference in a new issue