From 7dc542f3c294539a5349b0d90b6e9529ee6c6ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Mon, 16 Dec 2024 12:51:23 +0100 Subject: [PATCH] Get WEBPORT from pihole.toml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- automated install/basic-install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index ef1e372a..bff59bb8 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -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}"