Update server.py
Browse files
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", "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|