From c94b62f57b6fc34616525659c78ca5684f1d8afd Mon Sep 17 00:00:00 2001 From: Dmitry Badovsky Date: Wed, 22 Oct 2025 16:56:42 +0000 Subject: [PATCH] Update vmcreate.sh --- vmcreate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmcreate.sh b/vmcreate.sh index ab486c9..6ba8508 100644 --- a/vmcreate.sh +++ b/vmcreate.sh @@ -3,7 +3,7 @@ cat ./hosts | while read line do ip=$(echo $line | cut -d ' ' -f 1) hostname=$(echo $line | cut -d ' ' -f 2) - vmnum=35$(echo $ip | cut -d '.' -f 4) + vmnum=$(echo $ip | cut -d '.' -f 3)(echo $ip | cut -d '.' -f 3) qm clone 5000 $vmnum --name $hostname --full if [ $? -eq 0 ] then echo "clone OK"