From e7b8f5afdc7d0216e878ce60e40fa432265b4294 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 29 Jun 2023 09:25:55 +0800 Subject: [PATCH] Update index.py --- plugins/nezha/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nezha/index.py b/plugins/nezha/index.py index ee9919466..7f4dc3db4 100755 --- a/plugins/nezha/index.py +++ b/plugins/nezha/index.py @@ -102,7 +102,7 @@ class App: " |grep -v grep | grep -v nezha-agent | grep -v python | awk '{print $2}'" data = mw.execShell(cmd) if data[0] == '': - return self.status_agent() + return "stop" return 'start' def status_agent(self):