Get WEBPORT from pihole.toml

Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
Christian König 2024-12-16 12:51:23 +01:00
parent 3ac426b5d1
commit 7dc542f3c2
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -91,7 +91,7 @@ IPV4_ADDRESS=${IPV4_ADDRESS}
IPV6_ADDRESS=${IPV6_ADDRESS}
# Give settings their default values. These may be changed by prompts later in the script.
QUERY_LOGGING=
WEBPORT=8080
WEBPORT=
PRIVACY_LEVEL=
# Where old configs go to if a v6 migration is performed
@ -2498,6 +2498,9 @@ main() {
fi
if [[ "${useUpdateVars}" == false ]]; then
# Get the Web interface port, return only the first port
WEBPORT=$(getFTLConfigValue webserver.port|cut -d, -f1)
# Display the completion dialog
displayFinalMessage "${pw}"