mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update init_cmd.py
This commit is contained in:
@@ -44,6 +44,8 @@ def init_cmd():
|
||||
|
||||
if os.path.exists('/etc/init.d'):
|
||||
initd_bin = '/etc/init.d/mw'
|
||||
if not os.access(initd_bin, os.W_OK):
|
||||
return False
|
||||
shutil.copyfile(script_bin, initd_bin)
|
||||
mw.execShell('chmod +x ' + initd_bin)
|
||||
# 加入自启动
|
||||
|
||||
Reference in New Issue
Block a user