Qilan2 commited on
Commit
75302e9
·
verified ·
1 Parent(s): 5f8e95b

Update server2.py

Browse files
Files changed (1) hide show
  1. 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}:/sillytavern/ /sillytavern/", shell=True, check=True)
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}")