From 1764f993333c9a4b51132b84ebe3c74d19bd61c6 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Sat, 22 Feb 2025 15:35:05 +0000 Subject: [PATCH] decide migration based on existence of setupVars rather than pihole.toml Signed-off-by: Adam Warner --- automated install/basic-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 4f30bf46..a3818147 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -2312,8 +2312,8 @@ migrate_dnsmasq_configs() { # avoid conflicts with other services on this system # Exit early if this is already Pi-hole v6.0 - # We decide this on the presence of the file /etc/pihole/pihole.toml - if [[ -f "${PI_HOLE_V6_CONFIG}" ]]; then + # We decide this on the non-existence of the file /etc/pihole/setupVars.conf (either moved by previous migration or fresh install) + if [[ ! -f "/etc/pihole/setupVars.conf" ]]; then return 0 fi