From 000568983015bd9e478312d86ee5e5e4ff42cce1 Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Fri, 14 Apr 2023 15:46:16 +0800 Subject: [PATCH] Update create_vm.sh --- create_vm.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/create_vm.sh b/create_vm.sh index 6950120..ec05841 100644 --- a/create_vm.sh +++ b/create_vm.sh @@ -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))