mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-26 06:40:17 +00:00
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:
parent
54ab71d817
commit
b61e8be3b4
1 changed files with 1 additions and 3 deletions
|
@ -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")"
|
||||||
|
|
Loading…
Reference in a new issue