diff --git a/qmcreate.sh b/qmcreate.sh index 648c37d..b6b5430 100644 --- a/qmcreate.sh +++ b/qmcreate.sh @@ -13,10 +13,6 @@ do ## preparing custom CloudInit snippets cp ./user.yaml /mnt/pve/syno-tigra/snippets/${vmnum}_user.yaml sed -i "s/HOSTNAME/$hostname/g" /mnt/pve/syno-tigra/snippets/${vmnum}_user.yaml - if [ -e "./gfx.pub" ] - then echo "key OK" - else echo "key ERROR. Put the public key named 'gfx.pub'"; exit 2 - fi qm resize $vmnum scsi0 +50G qm set $vmnum --cicustom "user=syno-tigra:snippets/${vmnum}_user.yaml" qm set $vmnum --ipconfig0 ip=$ip/24,gw=10.10.35.1