diff --git a/vmcreate.sh b/vmcreate.sh index cb0e898..78582df 100644 --- a/vmcreate.sh +++ b/vmcreate.sh @@ -6,7 +6,7 @@ # ИЗУЧИТЬ!!!! /usr/share/pve-docs/examples/guest-example-hookscript.pl storage="syno-tigra" -path="/mnt/pve/$storage/snippets" +path="/mnt/pve/$storage/snippets/" node=3 size=50 @@ -122,6 +122,8 @@ while getopts "a:f:hk:u:p:d:n:t:" opt; do esac done +if [ $tag ]; then tag=",${tag}" + if [ $harule ]; then hostcheck "$harule" if [ $? -ne 0 ]; then echo "HArule should contain only letters, numbers and dashes. Aborting."; exit 1; fi