Get WEBPORT from pihole.toml
Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
parent
3ac426b5d1
commit
7dc542f3c2
|
@ -91,7 +91,7 @@ IPV4_ADDRESS=${IPV4_ADDRESS}
|
||||||
IPV6_ADDRESS=${IPV6_ADDRESS}
|
IPV6_ADDRESS=${IPV6_ADDRESS}
|
||||||
# Give settings their default values. These may be changed by prompts later in the script.
|
# Give settings their default values. These may be changed by prompts later in the script.
|
||||||
QUERY_LOGGING=
|
QUERY_LOGGING=
|
||||||
WEBPORT=8080
|
WEBPORT=
|
||||||
PRIVACY_LEVEL=
|
PRIVACY_LEVEL=
|
||||||
|
|
||||||
# Where old configs go to if a v6 migration is performed
|
# Where old configs go to if a v6 migration is performed
|
||||||
|
@ -2498,6 +2498,9 @@ main() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${useUpdateVars}" == false ]]; then
|
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
|
# Display the completion dialog
|
||||||
displayFinalMessage "${pw}"
|
displayFinalMessage "${pw}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue