From 7c476bad880240df362d900313f590c82115ef0c Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Sun, 23 Apr 2023 13:44:31 +0800 Subject: [PATCH] Update create_ct.sh --- scripts/create_ct.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/create_ct.sh b/scripts/create_ct.sh index bee6a18..36d3e20 100644 --- a/scripts/create_ct.sh +++ b/scripts/create_ct.sh @@ -35,9 +35,9 @@ pre_check(){ # fi check_info(){ - log_file="vmlog" - if [ ! -f "vmlog" ]; then - yellow "当前目录下不存在vmlog文件" + log_file="ctlog" + if [ ! -f "ctlog" ]; then + yellow "当前目录下不存在ctlog文件" ct_num=302 web2_port=20003 port_end=30025 @@ -109,7 +109,7 @@ build_new_vms(){ port_start=$(($port_end + 1)) port_end=$(($port_start + 25)) ./buildct.sh $ct_num $password $cpu_nums $memory_nums $disk_nums $ssh_port $web1_port $web2_port $port_start $port_end debian10 - cat "ct$ct_num" >> vmlog + cat "ct$ct_num" >> ctlog rm -rf "ct$ct_num" sleep 60 done