From e9a0ea9cc163969e07ea6a520b724d970e2c22e2 Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Sun, 9 Apr 2023 22:20:13 +0800 Subject: [PATCH] Update create_vm.sh --- back/create_vm.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/back/create_vm.sh b/back/create_vm.sh index 583adfc..709bc73 100644 --- a/back/create_vm.sh +++ b/back/create_vm.sh @@ -73,7 +73,9 @@ build_new_containers(){ user=${ori: 2: 4} ori=$(date | md5sum) password=${ori: 2: 9} - ssh_port=$(($ssh_port + 1)) + ssh_port=$(($web2_port + 1)) + web1_port=$(($web2_port + 2)) + web2_port=$(($web1_port + 3)) port_start=$(($port_end + 1)) port_end=$(($port_start + 25)) ./buildvm.sh $vm_num $user $password 1 512 5 $ssh_port $web1_port $web2_port $port_start $port_end 300 300