Address reviewer's comment

Co-authored-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2023-11-12 21:36:18 +01:00
parent 54ab71d817
commit b61e8be3b4
No known key found for this signature in database

View file

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