fix: Condition (#405)

This commit is contained in:
Kroese 2024-01-30 03:26:57 +01:00 committed by GitHub
parent 5ac6e893ca
commit 933c336068
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -279,11 +279,9 @@ fi
if [[ "$DHCP" == [Yy1]* ]]; then if [[ "$DHCP" == [Yy1]* ]]; then
if [[ "$GATEWAY" == "172."* ]]; then if [[ "$GATEWAY" == "172."* ]] && [[ "$DEBUG" != [Yy1]* ]]; then
if [[ "$DEBUG" != [Yy1]* ]]; then
error "You can only enable DHCP while the container is on a macvlan network!" && exit 26 error "You can only enable DHCP while the container is on a macvlan network!" && exit 26
fi fi
fi
# Configuration for DHCP IP # Configuration for DHCP IP
configureDHCP configureDHCP