From 2290e75efab805a1fade7ba6268cdc8dff68b3ff Mon Sep 17 00:00:00 2001 From: Dmitry Badovsky Date: Wed, 22 Oct 2025 14:09:41 +0000 Subject: [PATCH] Update qmcreate.sh --- qmcreate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qmcreate.sh b/qmcreate.sh index 8cb5b46..949f2ff 100644 --- a/qmcreate.sh +++ b/qmcreate.sh @@ -1,5 +1,5 @@ #!/bin/bash -while read $line +while read line do #echo $line ip=$(echo $line | cut -d ' ' -f 1) @@ -20,7 +20,7 @@ do sed -i "s/HOSTNAME/$hostname/g" /mnt/pve/syno-tigra/snippets/${vmnum}_user.yaml 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 sed -i "s/IP/$mac/g" /mnt/pve/syno-tigra/snippets/${vmnum}_network.yaml + sed -i "s/MAC/$mac/g" /mnt/pve/syno-tigra/snippets/${vmnum}_network.yaml if [ -f "./gfx.pub "] then echo "key OK" else echo "key ERROR. Put the public key named 'gfx.pub'"; exit 2