From 4a28db87382f2ab88526dea134c84ca73058648e Mon Sep 17 00:00:00 2001 From: Dmitry Badovsky Date: Wed, 22 Oct 2025 19:09:28 +0000 Subject: [PATCH] Update vmcreate1.sh --- vmcreate1.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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