Update vmcreate.sh
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user