Unverified Commit 933c3360 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Condition (#405)

parent 5ac6e893
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -279,11 +279,9 @@ fi

if [[ "$DHCP" == [Yy1]* ]]; then

  if [[ "$GATEWAY" == "172."* ]]; then
    if [[ "$DEBUG" != [Yy1]* ]]; then
  if [[ "$GATEWAY" == "172."* ]] && [[ "$DEBUG" != [Yy1]* ]]; then
    error "You can only enable DHCP while the container is on a macvlan network!" && exit 26
  fi
  fi

  # Configuration for DHCP IP
  configureDHCP