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