From 8bd068c68ebd9025cfea24a932bd6e8abbfab52a Mon Sep 17 00:00:00 2001 From: SDGDen Date: Mon, 9 Mar 2026 11:29:54 +0100 Subject: [PATCH] changed DHCP config order to avoid errors. --- deploy.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index 2a40fa1..6c50613 100644 --- a/deploy.sh +++ b/deploy.sh @@ -889,10 +889,6 @@ if [ "$external_access_method" -eq 2 ] || [ "$external_access_method" -eq 3 ]; t # Apply the DHCP configuration echo "Applying DHCP configuration..." - docker exec pihole pihole-FTL --config dhcp.active true || { - echo "Error: Failed to enable DHCP" - exit 1 - } docker exec pihole pihole-FTL --config dhcp.start "$dhcp_start" || { echo "Error: Failed to set DHCP start" exit 1 @@ -909,6 +905,10 @@ if [ "$external_access_method" -eq 2 ] || [ "$external_access_method" -eq 3 ]; t echo "Error: Failed to set DHCP netmask" exit 1 } + docker exec pihole pihole-FTL --config dhcp.active true || { + echo "Error: Failed to enable DHCP" + exit 1 + } # Restart PiHole to apply changes echo "Restarting PiHole to apply changes..."