Skip to content

Commit 384ffd4

Browse files
authored
Update 一键所有VPS更新系统.py
1 parent 931b0eb commit 384ffd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

一键所有VPS更新系统.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def update_server(name, hostname, port, username, password):
1919
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
2020
client.connect(hostname, port=port, username=username, password=password)
2121

22-
stdin, stdout, stderr = client.exec_command("apt update && apt full-upgrade -y")
22+
stdin, stdout, stderr = client.exec_command("DEBIAN_FRONTEND=noninteractive apt update && DEBIAN_FRONTEND=noninteractive apt full-upgrade -y")
2323

2424
print(f" {name} 开始更新")
2525
while not stdout.channel.exit_status_ready():

0 commit comments

Comments
 (0)