Qilan2 commited on
Commit
39c9ce5
·
verified ·
1 Parent(s): 7c1e79f

Update server3.py

Browse files
Files changed (1) hide show
  1. server3.py +1 -1
server3.py CHANGED
@@ -339,7 +339,7 @@ def check_api1():
339
  # print(f"Rsync failed with return code: {e.returncode}")
340
  # print(f"Command output: {e.output}")
341
  # # subprocess.run(f"rsync -avz -e 'ssh -p {ssh_port} -o StrictHostKeyChecking=no' root@{frp_url}:/sillytavern/ /sillytavern/", shell=True, check=True)
342
- subprocess.run(f"sh /sync_script.sh -p {ssh_port} -s {frp_url}", shell=True, check=True)
343
  break # 跳出循环
344
  else:
345
  print("接口返回信息:", response_json)
 
339
  # print(f"Rsync failed with return code: {e.returncode}")
340
  # print(f"Command output: {e.output}")
341
  # # subprocess.run(f"rsync -avz -e 'ssh -p {ssh_port} -o StrictHostKeyChecking=no' root@{frp_url}:/sillytavern/ /sillytavern/", shell=True, check=True)
342
+ subprocess.run(f"sh /sync.sh -p {ssh_port} -s {frp_url}", shell=True, check=True)
343
  break # 跳出循环
344
  else:
345
  print("接口返回信息:", response_json)