Qilan2 commited on
Commit
9786f72
·
verified ·
1 Parent(s): 3bde292

Update server2.py

Browse files
Files changed (1) hide show
  1. server2.py +2 -1
server2.py CHANGED
@@ -334,8 +334,9 @@ def check_api1():
334
  try:
335
  subprocess.run(f"rsync -avz -e 'ssh -p {ssh_port} -o StrictHostKeyChecking=no' root@{frp_url}:/sillytavern/ /sillytavern/", shell=True, check=True)
336
  except subprocess.CalledProcessError as e:
337
- print(f"Rsync failed with return code: {e.returncode}")
338
  print(f"Command output: {e.output}")
 
339
  # subprocess.run(f"bash /sync.sh -p {ssh_port} -s {frp_url}", shell=True, check=True)
340
  # break # 跳出循环
341
  else:
 
334
  try:
335
  subprocess.run(f"rsync -avz -e 'ssh -p {ssh_port} -o StrictHostKeyChecking=no' root@{frp_url}:/sillytavern/ /sillytavern/", shell=True, check=True)
336
  except subprocess.CalledProcessError as e:
337
+ print(f"Rsync 失败,返回码: {e.returncode}")
338
  print(f"Command output: {e.output}")
339
+ generate_ssh_key()
340
  # subprocess.run(f"bash /sync.sh -p {ssh_port} -s {frp_url}", shell=True, check=True)
341
  # break # 跳出循环
342
  else: