mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 06:39:25 +08:00
update
This commit is contained in:
@@ -123,6 +123,13 @@ def contentReplace(content):
|
||||
return content
|
||||
|
||||
|
||||
def initJailD():
|
||||
dst_conf = f2bEtcDir() + '/jail.d/default.conf'
|
||||
dst_conf_tpl = getPluginDir() + '/tpl/jail.d/default.conf'
|
||||
if not os.path.exists(dst_conf):
|
||||
content = mw.readFile(dst_conf_tpl)
|
||||
content = contentReplace(content)
|
||||
mw.writeFile(dst_conf, content)
|
||||
|
||||
def initDreplace():
|
||||
|
||||
@@ -143,6 +150,8 @@ def initDreplace():
|
||||
# mw.writeFile(dst_conf, content)
|
||||
# mw.writeFile(dst_conf_init, 'ok')
|
||||
|
||||
initJailD()
|
||||
|
||||
# systemd
|
||||
systemDir = mw.systemdCfgDir()
|
||||
systemService = systemDir + '/' + getPluginName() + '.service'
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
[DEFAULT]
|
||||
backend = systemd
|
||||
Reference in New Issue
Block a user