Update create_vm.sh

This commit is contained in:
spiritLHLS 2023-04-14 15:46:16 +08:00 committed by GitHub
parent ec2c610522
commit 0005689830
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,8 +78,7 @@ build_new_vms(){
done
for ((i=1; i<=$new_nums; i++)); do
vm_num=$(($vm_num + 1))
ori=$(date | md5sum)
user=${ori: 2: 4}
user=$(cat /dev/urandom | tr -dc 'a-zA-Z' | fold -w 4 | head -n 1)
ori=$(date | md5sum)
password=${ori: 2: 9}
ssh_port=$(($web2_port + 1))