diff --git a/vmcreate1.sh b/vmcreate1.sh index 5090a36..f7acae9 100644 --- a/vmcreate1.sh +++ b/vmcreate1.sh @@ -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 \ No newline at end of file + fi \ No newline at end of file