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..."