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:
@@ -82,6 +82,10 @@ def initInitD():
|
|||||||
doContentReplace(script, script_bin)
|
doContentReplace(script, script_bin)
|
||||||
mw.execShell('chmod +x ' + script_bin)
|
mw.execShell('chmod +x ' + script_bin)
|
||||||
|
|
||||||
|
# 在linux系统中,确保/etc/init.d存在
|
||||||
|
if not mw.isAppleSystem() and not os.path.exists("/etc/init.d"):
|
||||||
|
mw.execShell('mkdir -p /etc/init.d')
|
||||||
|
|
||||||
# initd
|
# initd
|
||||||
if os.path.exists("/etc/init.d"):
|
if os.path.exists("/etc/init.d"):
|
||||||
initd_bin = '/etc/init.d/mw'
|
initd_bin = '/etc/init.d/mw'
|
||||||
|
|||||||
Reference in New Issue
Block a user