From 2322d90b15427ba7b467b6bff219df88e2caf9a9 Mon Sep 17 00:00:00 2001 From: Dmitry Badovsky Date: Wed, 22 Oct 2025 16:27:27 +0000 Subject: [PATCH] Update vmcreate.sh --- vmcreate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmcreate.sh b/vmcreate.sh index b6b5430..ab486c9 100644 --- a/vmcreate.sh +++ b/vmcreate.sh @@ -1,5 +1,5 @@ #!/bin/bash -while read line +cat ./hosts | while read line do ip=$(echo $line | cut -d ' ' -f 1) hostname=$(echo $line | cut -d ' ' -f 2) @@ -18,4 +18,4 @@ do qm set $vmnum --ipconfig0 ip=$ip/24,gw=10.10.35.1 qm cloudinit update $vmnum qm start $vmnum -done < ./hosts \ No newline at end of file +done \ No newline at end of file