From bd3a0f4891818c16950e9348b5d6c225da5a88d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Sat, 22 Feb 2025 07:16:28 +0100 Subject: [PATCH] Don't set a random password on v5 -> v6 updates 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 | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 3bf14cc5..4f30bf46 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -93,6 +93,7 @@ IPV6_ADDRESS=${IPV6_ADDRESS} QUERY_LOGGING= WEBPORT= PRIVACY_LEVEL= +v5_to_v6_update=false # Where old configs go to if a v6 migration is performed V6_CONF_MIGRATION_DIR="/etc/pihole/migration_backup_v6" @@ -2356,6 +2357,8 @@ migrate_dnsmasq_configs() { # Print a blank line for separation printf "\\n" + + v5_to_v6_update=true } # Check for availability of either the "service" or "systemctl" commands @@ -2515,18 +2518,11 @@ main() { # Copy the temp log file into final log location for storage copy_to_install_log - # Add password to web UI if there is none - pw="" - # If no password is set, - if [[ -z $(pihole-FTL --config webserver.api.pwhash) ]]; then - # generate a random password - pw=$(tr -dc _A-Z-a-z-0-9