Update index.py

This commit is contained in:
dami
2026-06-22 16:32:59 +08:00
parent 3e0e84a4f6
commit f0f9dcf4de
+3 -2
View File
@@ -65,7 +65,7 @@ class App:
return "Release failed {}".format(e)
def openPort(self):
for i in ["8008", "5555"]:
for i in ["8008"]:
self.__release_port(i)
return True
@@ -101,8 +101,9 @@ class App:
return 'root'
def status(self):
cmd = "ps -ef|grep dashboard/app |grep -v grep | grep -v python | awk '{print $2}'"
cmd = "ps -ef|grep nezha/dashboard |grep -v grep | grep -v python | awk '{print $2}'"
data = mw.execShell(cmd)
# mw.writeFileLog("data[0]:"+data[0])
if data[0] == '':
return "stop"
return 'start'