Update qmcreate.sh
This commit is contained in:
@@ -13,10 +13,6 @@ do
|
|||||||
## preparing custom CloudInit snippets
|
## preparing custom CloudInit snippets
|
||||||
cp ./user.yaml /mnt/pve/syno-tigra/snippets/${vmnum}_user.yaml
|
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
|
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 resize $vmnum scsi0 +50G
|
||||||
qm set $vmnum --cicustom "user=syno-tigra:snippets/${vmnum}_user.yaml"
|
qm set $vmnum --cicustom "user=syno-tigra:snippets/${vmnum}_user.yaml"
|
||||||
qm set $vmnum --ipconfig0 ip=$ip/24,gw=10.10.35.1
|
qm set $vmnum --ipconfig0 ip=$ip/24,gw=10.10.35.1
|
||||||
|
|||||||
Reference in New Issue
Block a user