Update common.py

pull/109/head
midoks 3 years ago
parent e09cb183d4
commit cf36a28de7
  1. 7
      class/core/common.py

@ -20,10 +20,9 @@ from flask import redirect
def init(): def init():
initDB() initDB()
initInitD()
initUserInfo() initUserInfo()
initInitD()
def local(): def local():
@ -57,7 +56,6 @@ def doContentReplace(src, dst):
def initInitD(): def initInitD():
mw.setHostAddr(mw.getLocalIp())
# systemctl # systemctl
# 有问题 # 有问题
@ -97,6 +95,9 @@ def initInitD():
mw.execShell('which chkconfig && chkconfig --add mw') mw.execShell('which chkconfig && chkconfig --add mw')
mw.execShell('which update-rc.d && update-rc.d -f mw defaults') mw.execShell('which update-rc.d && update-rc.d -f mw defaults')
# 获取系统IPV4
mw.setHostAddr(mw.getLocalIp())
def initUserInfo(): def initUserInfo():

Loading…
Cancel
Save