mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update common.py
This commit is contained in:
@@ -20,10 +20,9 @@ from flask import redirect
|
||||
|
||||
|
||||
def init():
|
||||
|
||||
initDB()
|
||||
initInitD()
|
||||
initUserInfo()
|
||||
initInitD()
|
||||
|
||||
|
||||
def local():
|
||||
@@ -57,7 +56,6 @@ def doContentReplace(src, dst):
|
||||
|
||||
|
||||
def initInitD():
|
||||
mw.setHostAddr(mw.getLocalIp())
|
||||
|
||||
# systemctl
|
||||
# 有问题
|
||||
@@ -97,6 +95,9 @@ def initInitD():
|
||||
mw.execShell('which chkconfig && chkconfig --add mw')
|
||||
mw.execShell('which update-rc.d && update-rc.d -f mw defaults')
|
||||
|
||||
# 获取系统IPV4
|
||||
mw.setHostAddr(mw.getLocalIp())
|
||||
|
||||
|
||||
def initUserInfo():
|
||||
|
||||
|
||||
Reference in New Issue
Block a user