Update vmcreate1.sh
This commit is contained in:
@@ -11,7 +11,7 @@ show_help()
|
||||
echo "In this case Hostname will be inherited from 2 last IP octets. Example for 10.10.35.20: 'vm035020'."
|
||||
|
||||
make_file (){
|
||||
|
||||
touch hosts.tmp
|
||||
}
|
||||
|
||||
ip_check (){
|
||||
@@ -58,9 +58,13 @@ do
|
||||
qm start $vmnum
|
||||
# ДОБАВИТЬ правило HA если $haadd
|
||||
done
|
||||
if [ -e hosts.tmp]
|
||||
then
|
||||
rm hosts.tmp
|
||||
fi
|
||||
echo "VMs from 'hosts' successfully created"
|
||||
if [ -v $privkey ]
|
||||
then
|
||||
echo "Generated private key $privkey"
|
||||
echo "SAVE IT!"
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user