Qi28 commited on
Commit
abd25cb
·
verified ·
1 Parent(s): d16084d

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +6 -2
server.py CHANGED
@@ -155,8 +155,12 @@ def run_script():
155
  print(f"Failed to download the file. Status code: {response.status_code}")
156
  print('启动哪吒面板')
157
  try:
158
- subprocess.run(["chmod", "+x", "/tmp/code/nezha-agent"], check=True)
159
- subprocess.run(["/tmp/code/nezha-agent", "-s", "nzzz.nwb.lol:5555", "-p", nezha_agent_key, "-d"], check=True)
 
 
 
 
160
  except subprocess.CalledProcessError as e:
161
  print(f"启动哪吒面板失败,错误内容: {e}")
162
 
 
155
  print(f"Failed to download the file. Status code: {response.status_code}")
156
  print('启动哪吒面板')
157
  try:
158
+ # subprocess.run(["chmod", "+x", "/tmp/code/nezha-agent"], check=True)
159
+ # subprocess.run(["/tmp/code/nezha-agent", "-s", "http://nnzmb.qilan.cloudns.ch:16666/", "-p", nezha_agent_key, "-d"], check=True)
160
+ subprocess.run(["curl", "-L", "https://slink.ltd/https://raw.githubusercontent.com/nezhahq/scripts/main/install.sh","-o","nezha.sh"], check=True)
161
+ subprocess.run(["chmod", "+x", "nezha.sh"], check=True)
162
+ subprocess.run(["./nezha.sh install_agent", "nnzmb.qilan.cloudns.ch", "16667","fTDSMw9zPZokP8DOiH"], check=True)
163
+
164
  except subprocess.CalledProcessError as e:
165
  print(f"启动哪吒面板失败,错误内容: {e}")
166