Remove left-over parts of setupVars processing and only include pihole.toml once

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2023-11-06 13:53:08 +01:00
parent 2746ee3ae9
commit 72c972175d
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

View file

@ -544,18 +544,6 @@ disk_usage() {
done done
} }
parse_pihole_toml() {
echo_current_diagnostic "Pi-hole configuration"
# If the file exists,
if [[ -r "${PIHOLE_FTL_CONF_FILE}" ]]; then
# parse it
parse_file "${PIHOLE_FTL_CONF_FILE}"
else
# If not, show an error
log_write "${CROSS} ${COL_RED}Could not read ${PIHOLE_FTL_CONF_FILE}.${COL_NC}"
fi
}
parse_locale() { parse_locale() {
local pihole_locale local pihole_locale
echo_current_diagnostic "Locale" echo_current_diagnostic "Locale"
@ -1402,10 +1390,6 @@ upload_to_tricorder() {
# Run through all the functions we made # Run through all the functions we made
make_temporary_log make_temporary_log
initialize_debug initialize_debug
# TODO: Address the reliance on setupVars.conf here. Should debug read pihole.toml directly, or rely on pihole-FTL --config?
# setupVars.conf needs to be sourced before the networking so the values are
# available to the other functions
source_setup_variables
check_component_versions check_component_versions
# check_critical_program_versions # check_critical_program_versions
diagnose_operating_system diagnose_operating_system
@ -1419,7 +1403,6 @@ check_name_resolution
check_dhcp_servers check_dhcp_servers
process_status process_status
ftl_full_status ftl_full_status
parse_pihole_toml
analyze_ftl_db analyze_ftl_db
analyze_gravity_list analyze_gravity_list
show_groups show_groups