Update vmcreate.sh

This commit is contained in:
2025-10-22 16:56:42 +00:00
parent 52045fc0b7
commit c94b62f57b

View File

@@ -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"