Merge pull request #10 from ki4hrg/patch-1

Add VLAN_TAG variable with conditional VLAN tag support in interface creation
This commit is contained in:
Remy
2026-03-28 01:30:19 +01:00
committed by GitHub
+1 -1
View File
@@ -85,7 +85,7 @@ pct create "$CTID" "$TEMPLATE" \
--rootfs "${STORAGE}:${DISK_SIZE}" \
--memory "$RAM" \
--cores "$CORES" \
--net0 "name=eth0,bridge=${BRIDGE},ip=dhcp" \
--net0 "name=eth0,bridge=${BRIDGE},ip=dhcp${VLAN_TAG:+,tag=${VLAN_TAG}}" \
--ostype debian \
--unprivileged 1 \
--features "nesting=1" \