Update qmcreate.sh

This commit is contained in:
2025-10-22 14:17:09 +00:00
parent f13ca4d802
commit d28e7dc0e4

View File

@@ -21,7 +21,7 @@ do
sed -i "s/IP/$ip/g" /mnt/pve/syno-tigra/snippets/${vmnum}_network.yaml
mac=$(cat /etc/pve/qemu-server/${vmnum}.conf | grep net0 | cut -d ',' -f 1 | cut -d '=' -f 2)
sed -i "s/MAC/$mac/g" /mnt/pve/syno-tigra/snippets/${vmnum}_network.yaml
if [ -e "./gfx.pub"]
if [ -e "./gfx.pub" ]
then echo "key OK"
else echo "key ERROR. Put the public key named 'gfx.pub'"; exit 2
fi