mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-04 01:38:12 +08:00
Update create_ct.sh
This commit is contained in:
parent
8b859bf6f6
commit
7c476bad88
1 changed files with 4 additions and 4 deletions
|
@ -35,9 +35,9 @@ pre_check(){
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
check_info(){
|
check_info(){
|
||||||
log_file="vmlog"
|
log_file="ctlog"
|
||||||
if [ ! -f "vmlog" ]; then
|
if [ ! -f "ctlog" ]; then
|
||||||
yellow "当前目录下不存在vmlog文件"
|
yellow "当前目录下不存在ctlog文件"
|
||||||
ct_num=302
|
ct_num=302
|
||||||
web2_port=20003
|
web2_port=20003
|
||||||
port_end=30025
|
port_end=30025
|
||||||
|
@ -109,7 +109,7 @@ build_new_vms(){
|
||||||
port_start=$(($port_end + 1))
|
port_start=$(($port_end + 1))
|
||||||
port_end=$(($port_start + 25))
|
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
|
./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"
|
rm -rf "ct$ct_num"
|
||||||
sleep 60
|
sleep 60
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue