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