This commit is contained in:
spiritlhl 2023-08-29 01:56:44 +00:00
parent 140a57ca16
commit 5124252d62
2 changed files with 2 additions and 2 deletions

View file

@ -251,7 +251,7 @@ if [ $first_digit -le 2 ]; then
else
num=$((first_digit - 2))$second_digit$third_digit
fi
if [ "$independent_ipv6" == "N" ]; then
if [ "$independent_ipv6" == "n" ]; then
qm create $vm_num --agent 1 --scsihw virtio-scsi-single --serial0 socket --cores $core --sockets 1 --cpu host --net0 virtio,bridge=vmbr1,firewall=0
else
qm create $vm_num --agent 1 --scsihw virtio-scsi-single --serial0 socket --cores $core --sockets 1 --cpu host --net0 virtio,bridge=vmbr1,firewall=0 --net1 virtio,bridge=vmbr2,firewall=0

View file

@ -300,7 +300,7 @@ else
ipv6_gateway=$(cat /usr/local/bin/pve_ipv6_gateway)
fi
fi
if [ "$independent_ipv6" == "N" ]; then
if [ "$independent_ipv6" == "n" ]; then
qm create $vm_num --agent 1 --scsihw virtio-scsi-single --serial0 socket --cores $core --sockets 1 --cpu host --net0 virtio,bridge=vmbr0,firewall=0
else
qm create $vm_num --agent 1 --scsihw virtio-scsi-single --serial0 socket --cores $core --sockets 1 --cpu host --net0 virtio,bridge=vmbr0,firewall=0 --net1 virtio,bridge=vmbr2,firewall=0