mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 02:39:26 +08:00
Update index.py
This commit is contained in:
@@ -120,7 +120,9 @@ def initDreplace():
|
||||
systemDir = '/lib/systemd/system'
|
||||
systemService = systemDir + '/pureftp.service'
|
||||
systemServiceTpl = getPluginDir() + '/init.d/pureftp.service.tpl'
|
||||
if os.path.exists(systemDir) and not os.path.exists(systemService):
|
||||
|
||||
if os.path.exists(systemDir):
|
||||
# and not os.path.exists(systemService)
|
||||
se_content = mw.readFile(systemServiceTpl)
|
||||
se_content = se_content.replace('{$SERVER_PATH}', service_path)
|
||||
mw.writeFile(systemService, se_content)
|
||||
|
||||
Reference in New Issue
Block a user