Update vmcreate.sh

This commit is contained in:
2025-11-01 13:17:35 +00:00
parent 8347d51e78
commit add601818d

View File

@@ -36,7 +36,7 @@ show_help () {
echo "-u - specify user instead of default 'root'."
echo "-p - specify password instead of default."
echo "-d - add custom disk space (in gibibytes, integer). Default is 50."
echo "-n - specify target node NUMBER to migrate VM to after creating. Default is '3'"
# echo "-n - specify target node NUMBER to migrate VM to after creating. Default is '3'"
echo "-t - add additional proxmox tag. Default is only pve node number."
echo "-f - get IP addresses and Hostnames from 'flilename'."
echo "-s - specify custom snippet template. Default is 'user.yaml'"
@@ -148,7 +148,7 @@ REMOVE () {
}
# Обрабатываем опции
while getopts "a:f:hk:u:p:d:n:t:s:R" opt; do
while getopts "a:f:hk:u:p:d:t:s:R" opt; do
case $opt in
a) harule=${OPTARG};;
f) file=${OPTARG};;
@@ -157,7 +157,7 @@ while getopts "a:f:hk:u:p:d:n:t:s:R" opt; do
u) username=${OPTARG};;
p) password=${OPTARG};;
d) size=${OPTARG};;
n) node=${OPTARG};;
# n) node=${OPTARG};;
t) tag=${OPTARG};;
s) template=${OPTARG};;
R) remove=true;;