fix: Use IP as host for DHCP

This commit is contained in:
Kroese 2024-04-27 16:03:56 +02:00 committed by GitHub
parent 84ea9ee36e
commit e77681b9f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,7 +8,11 @@ set -Eeuo pipefail
hostname="host.lan" hostname="host.lan"
interface="dockerbridge" interface="dockerbridge"
[[ "$DHCP" == [Yy1]* ]] && interface="$VM_NET_DEV"
if [[ "$DHCP" == [Yy1]* ]]; then
hostname="$IP"
interface="$VM_NET_DEV"
fi
share="$STORAGE/shared" share="$STORAGE/shared"