pull/632/head
Mr Chen 5 months ago
parent 766dc32287
commit ad66ecc628
  1. 6
      plugins/xui/index.py
  2. 2
      plugins/xui/install.sh

@ -154,7 +154,7 @@ def initdUinstall():
mw.execShell('systemctl disable x-ui')
return 'ok'
def getMtproxyUrl():
def getXuiInfo():
user = pSqliteDb('users')
@ -209,7 +209,7 @@ if __name__ == "__main__":
print(getServiceFile())
elif func == 'conf_env':
print(getConfEnv())
elif func == 'url':
print(getMtproxyUrl())
elif func == 'info':
print(getXuiInfo())
else:
print('error')

@ -11,7 +11,7 @@ sysArch=`arch`
sysName=`uname`
# cd /www/server/mdserver-web && python3 plugins/xui/index.py url
# cd /www/server/mdserver-web && python3 plugins/xui/index.py info
# cd /www/server/mdserver-web/plugins/xui && /bin/bash install.sh install 1.0
VERSION=$2

Loading…
Cancel
Save