From d36b36e1d35bbfe6802a0e8ef45f50dd4c2fcba5 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 3 Dec 2024 17:14:31 +0800 Subject: [PATCH] Update index.py --- plugins/xui/index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/xui/index.py b/plugins/xui/index.py index 1feba1110..6111db254 100755 --- a/plugins/xui/index.py +++ b/plugins/xui/index.py @@ -169,7 +169,7 @@ def initdStatus(): if mw.isAppleSystem(): return "Apple Computer does not support" - shell_cmd = 'systemctl status mtproxy | grep loaded | grep "enabled;"' + shell_cmd = 'systemctl status x-ui | grep loaded | grep "enabled;"' data = mw.execShell(shell_cmd) if data[0] == '': return 'fail' @@ -178,14 +178,14 @@ def initdStatus(): def initdInstall(): if mw.isAppleSystem(): return "Apple Computer does not support" - mw.execShell('systemctl enable mtproxy') + mw.execShell('systemctl enable x-ui') return 'ok' def initdUinstall(): if mw.isAppleSystem(): return "Apple Computer does not support" - mw.execShell('systemctl disable mtproxy') + mw.execShell('systemctl disable x-ui') return 'ok' def getMtproxyUrl():