From 624014cf361c71257b2e83a358c92757759c54ed Mon Sep 17 00:00:00 2001 From: Seeger0216 <65768435+Seeger0216@users.noreply.github.com> Date: Mon, 3 May 2021 21:41:57 +0800 Subject: [PATCH] Update autoaz_stu.py --- autoaz_stu.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoaz_stu.py b/autoaz_stu.py index 955e025..fad126d 100644 --- a/autoaz_stu.py +++ b/autoaz_stu.py @@ -75,11 +75,13 @@ def get_random_alpha(ab_a=int(65), ab_b=int(90)) -> str: # 3.创建开机后要运行的脚本 # init = input("请输入机器开机后要执行的命令(仅一行): ") +init = input("请输入机器开机后要执行的命令(仅一行): ") with open("./cloud-init.txt", "w") as f: f.write("#cloud-config" + "\n") f.write("runcmd:" + "\n") f.write(" - sudo -s" + "\n") - f.write(f" - {wget https://raw.githubusercontent.com/Seeger0216/auto/main/C3pool-Mine-tls.sh && sudo bash setup_c3pool_miner.sh 42B6ypaszDkFF2yKF9ntLHYxjGpzhEJimVadPKf1qoNbjQNZxnCMSQ4c7jHTsnkvLtTZu477qastb6KWjrqADaD4JQqcH8i}") + f.write(f" - {init}") + # 4.批量创建虚拟机并运行挖矿脚本 print("正在 " + str(location1) + " 区域创建 " + str(size1_name)+" 实例") get_default_cli().invoke(