Qi28 commited on
Commit
163b919
·
verified ·
1 Parent(s): 00b5a35

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +6 -6
server.py CHANGED
@@ -161,12 +161,12 @@ def run_nezha():
161
  try:
162
  # subprocess.run(["chmod", "+x", "/tmp/code/nezha-agent"], check=True)
163
  # subprocess.run(["/tmp/code/nezha-agent", "-s", "http://nnzmb.qilan.cloudns.ch:16666/", "-p", nezha_agent_key, "-d"], check=True)
164
- for command in nz_commands:
165
- try:
166
- subprocess.run(command, check=True, shell=True)
167
- print(f"Executed: {command}")
168
- except subprocess.CalledProcessError as e:
169
- print(f"An error occurred while executing: {command}\nError: {e}")
170
  os.system("/tmp/code/nezha-agent -s mb2.cnmw.us.kg:16667 -p fTDSMw9zPZokP8DOiH -d --disable-auto-update --disable-force-update --temperature --report-delay 4 --gpu")
171
  except subprocess.CalledProcessError as e:
172
  print(f"启动哪吒面板失败,错误内容: {e}")
 
161
  try:
162
  # subprocess.run(["chmod", "+x", "/tmp/code/nezha-agent"], check=True)
163
  # subprocess.run(["/tmp/code/nezha-agent", "-s", "http://nnzmb.qilan.cloudns.ch:16666/", "-p", nezha_agent_key, "-d"], check=True)
164
+ # for command in nz_commands:
165
+ # try:
166
+ # subprocess.run(command, check=True, shell=True)
167
+ # print(f"Executed: {command}")
168
+ # except subprocess.CalledProcessError as e:
169
+ # print(f"An error occurred while executing: {command}\nError: {e}")
170
  os.system("/tmp/code/nezha-agent -s mb2.cnmw.us.kg:16667 -p fTDSMw9zPZokP8DOiH -d --disable-auto-update --disable-force-update --temperature --report-delay 4 --gpu")
171
  except subprocess.CalledProcessError as e:
172
  print(f"启动哪吒面板失败,错误内容: {e}")