Return early during v6 migration if migration dir exists

Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
Christian König 2024-09-12 21:32:36 +02:00
parent 23f6c3069a
commit 251f3295f3
No known key found for this signature in database

View file

@ -2146,8 +2146,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 /etc/pihole/pihole.toml ]]; then
# We decide this on the presence of the migration dir
if [[ -d "${V6_CONF_MIGRATION_DIR}" ]]; then
return 0
fi