mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -76,6 +76,10 @@ def initConf():
|
||||
mw.execShell('cp -rf ' + tmp + ' /etc/opt/ss5')
|
||||
mw.execShell('cp -rf ' + tmp + ' ' + getServerDir())
|
||||
|
||||
init_file = '/etc/init.d/ss5'
|
||||
if os.path.exists(init_file):
|
||||
mw.execShell('chmod +x' + init_file)
|
||||
|
||||
ss5_pwd = getServerDir() + '/ss5.passwd'
|
||||
if not os.path.exists(ss5_pwd):
|
||||
tmp = getPluginDir() + '/tmp/ss5.passwd'
|
||||
|
||||
Reference in New Issue
Block a user