diff --git a/scripts/buildvm.sh b/scripts/buildvm.sh index c84aa1f..446cb69 100644 --- a/scripts/buildvm.sh +++ b/scripts/buildvm.sh @@ -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 diff --git a/scripts/buildvm_manual_ip.sh b/scripts/buildvm_manual_ip.sh index d626943..a298a72 100644 --- a/scripts/buildvm_manual_ip.sh +++ b/scripts/buildvm_manual_ip.sh @@ -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