Update server9-bf.py
Browse files- server9-bf.py +2 -2
server9-bf.py
CHANGED
|
@@ -202,7 +202,7 @@ def init_environment():
|
|
| 202 |
run_cmd("apt-get install -y sshpass p7zip-full pigz pv", quiet=True)
|
| 203 |
logging.info('-----------更新软件包列表结束-------------')
|
| 204 |
|
| 205 |
-
def
|
| 206 |
if install_ssh_config:
|
| 207 |
run_cmd("sudo mkdir -p --mode=0755 /usr/share/keyrings")
|
| 208 |
run_cmd("curl -fsSL https://pkg.cloudflare.com/cloudflare-public-v2.gpg | sudo tee /usr/share/keyrings/cloudflare-public-v2.gpg >/dev/null")
|
|
@@ -514,7 +514,7 @@ if __name__ == '__main__':
|
|
| 514 |
# 1. 基础环境预热
|
| 515 |
init_environment()
|
| 516 |
kill_frpc_processes()
|
| 517 |
-
|
| 518 |
setup_ssh()
|
| 519 |
|
| 520 |
generate_ssh_key()
|
|
|
|
| 202 |
run_cmd("apt-get install -y sshpass p7zip-full pigz pv", quiet=True)
|
| 203 |
logging.info('-----------更新软件包列表结束-------------')
|
| 204 |
|
| 205 |
+
def f(install_ssh_config=True):
|
| 206 |
if install_ssh_config:
|
| 207 |
run_cmd("sudo mkdir -p --mode=0755 /usr/share/keyrings")
|
| 208 |
run_cmd("curl -fsSL https://pkg.cloudflare.com/cloudflare-public-v2.gpg | sudo tee /usr/share/keyrings/cloudflare-public-v2.gpg >/dev/null")
|
|
|
|
| 514 |
# 1. 基础环境预热
|
| 515 |
init_environment()
|
| 516 |
kill_frpc_processes()
|
| 517 |
+
f(True)
|
| 518 |
setup_ssh()
|
| 519 |
|
| 520 |
generate_ssh_key()
|