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:
@@ -135,6 +135,7 @@ def initDReceive():
|
||||
mw.writeFile(file_bin, content)
|
||||
mw.execShell('chmod +x ' + file_bin)
|
||||
|
||||
lock_file = getServerDir() + "/installed_rsyncd.pl"
|
||||
# systemd
|
||||
systemDir = mw.systemdCfgDir()
|
||||
systemService = systemDir + '/rsyncd.service'
|
||||
@@ -152,6 +153,8 @@ def initDReceive():
|
||||
mw.writeFile(systemService, se)
|
||||
mw.execShell('systemctl daemon-reload')
|
||||
|
||||
mw.writeFile(lock_file, "ok")
|
||||
|
||||
rlog = getLog()
|
||||
if os.path.exists(rlog):
|
||||
mw.writeFile(rlog, '')
|
||||
@@ -199,7 +202,7 @@ def initDSend():
|
||||
mw.writeFile(systemService, content)
|
||||
mw.execShell('systemctl daemon-reload')
|
||||
|
||||
mw.writeFile(lock_file, "ok")
|
||||
mw.writeFile(lock_file, "ok")
|
||||
|
||||
lslog = getLsyncdLog()
|
||||
if os.path.exists(lslog):
|
||||
|
||||
Reference in New Issue
Block a user