Update server2.py
Browse files- server2.py +1 -1
server2.py
CHANGED
|
@@ -367,7 +367,7 @@ def check_api1():
|
|
| 367 |
if "token" in response_json:
|
| 368 |
print("检测到 token")
|
| 369 |
try:
|
| 370 |
-
subprocess.run(f"rsync -avz -e 'ssh -p {ssh_port} -o StrictHostKeyChecking=no' root@{frp_url}
|
| 371 |
except subprocess.CalledProcessError as e:
|
| 372 |
print(f"Rsync 失败,返回码: {e.returncode}")
|
| 373 |
print(f"Command output: {e.output}")
|
|
|
|
| 367 |
if "token" in response_json:
|
| 368 |
print("检测到 token")
|
| 369 |
try:
|
| 370 |
+
subprocess.run(f"rsync -avz -e 'ssh -p {ssh_port} -o StrictHostKeyChecking=no' root@{frp_url}:{data_folder}/ {data_folder}/", shell=True, check=True)
|
| 371 |
except subprocess.CalledProcessError as e:
|
| 372 |
print(f"Rsync 失败,返回码: {e.returncode}")
|
| 373 |
print(f"Command output: {e.output}")
|