Update index.py

pull/632/head
Mr Chen 5 months ago
parent 9eabb10e41
commit d36b36e1d3
  1. 6
      plugins/xui/index.py

@ -169,7 +169,7 @@ def initdStatus():
if mw.isAppleSystem(): if mw.isAppleSystem():
return "Apple Computer does not support" 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) data = mw.execShell(shell_cmd)
if data[0] == '': if data[0] == '':
return 'fail' return 'fail'
@ -178,14 +178,14 @@ def initdStatus():
def initdInstall(): def initdInstall():
if mw.isAppleSystem(): if mw.isAppleSystem():
return "Apple Computer does not support" return "Apple Computer does not support"
mw.execShell('systemctl enable mtproxy') mw.execShell('systemctl enable x-ui')
return 'ok' return 'ok'
def initdUinstall(): def initdUinstall():
if mw.isAppleSystem(): if mw.isAppleSystem():
return "Apple Computer does not support" return "Apple Computer does not support"
mw.execShell('systemctl disable mtproxy') mw.execShell('systemctl disable x-ui')
return 'ok' return 'ok'
def getMtproxyUrl(): def getMtproxyUrl():

Loading…
Cancel
Save