From bbef84299e23a1fc38a03ac8338e49474eb06918 Mon Sep 17 00:00:00 2001 From: Dmitry Badovsky Date: Tue, 28 Oct 2025 12:51:43 +0000 Subject: [PATCH] Update vmcreate.sh --- vmcreate.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/vmcreate.sh b/vmcreate.sh index 557ab5e..cb0e898 100644 --- a/vmcreate.sh +++ b/vmcreate.sh @@ -6,20 +6,16 @@ # ИЗУЧИТЬ!!!! /usr/share/pve-docs/examples/guest-example-hookscript.pl storage="syno-tigra" -#path="/mnt/pve/$storage/snippets" -path="./snippets/" #SEE BELOW!!! -mkdir $path #REMOVE AFTER CORRECT PATH!!!!!!!! +path="/mnt/pve/$storage/snippets" node=3 size=50 -# Далее объявляю переменные, в цикле getopts это не получается harule="" pubkey="" username="" password="" tag="" file="" -# Конец костыля show_help () { echo @@ -280,7 +276,6 @@ do echo "TAG: $tag" echo "$snippet:" cat "$snippet" - exit 100 #### echo -n "Now cloning VM $vmnum from a template....." qm clone 5000 $vmid --name $hostname --full > /dev/null @@ -299,7 +294,6 @@ do ### DEBUG echo "DEBUG: ${vmid}.conf" cat /etc/pve/qemu-server/${vmid}.conf - exit 102 ### # # Migrate VM to target node # echo -n "Migrating VM $vmid to pve${node}....."