Update qmcreate.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user