Address reviewer's comment

Co-authored-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
pull/5481/head
Christian König 6 months ago
parent 54ab71d817
commit b61e8be3b4
No known key found for this signature in database

@ -82,11 +82,9 @@ PIHOLE_VERSIONS_FILE="${PIHOLE_DIRECTORY}/versions"
# Read the value of an FTL config key. The value is printed to stdout.
get_ftl_conf_value() {
local key=$1
local value
# Obtain setting from FTL directly
value="$(pihole-FTL --config "${key}")"
echo "$value"
pihole-FTL --config "${key}"
}
PIHOLE_GRAVITY_DB_FILE="$(get_ftl_conf_value "files.gravity")"

Loading…
Cancel
Save