|
|
@ -504,6 +504,10 @@ def cmdRecCmd(): |
|
|
|
# ----------------------------- rsyncdSend start ------------------------- |
|
|
|
# ----------------------------- rsyncdSend start ------------------------- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def lsyncdReload(): |
|
|
|
|
|
|
|
mw.execShell('systemctl reload lsyncd') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def makeLsyncdConf(data): |
|
|
|
def makeLsyncdConf(data): |
|
|
|
# print(data) |
|
|
|
# print(data) |
|
|
|
|
|
|
|
|
|
|
@ -579,6 +583,8 @@ def makeLsyncdConf(data): |
|
|
|
path = getServerDir() + "/lsyncd.conf" |
|
|
|
path = getServerDir() + "/lsyncd.conf" |
|
|
|
mw.writeFile(path, content) |
|
|
|
mw.writeFile(path, content) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lsyncdReload() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def lsyncdListFindIp(slist, ip): |
|
|
|
def lsyncdListFindIp(slist, ip): |
|
|
|
for x in range(len(slist)): |
|
|
|
for x in range(len(slist)): |
|
|
|