Update index.py

pull/838/head
dami 5 months ago
parent 45ff09dadb
commit f4f327f25d
  1. 3
      plugins/rsyncd/index.py

@ -596,7 +596,8 @@ def makeLsyncdConf(data):
cmd_exclude_txt += x + "\n"
mw.writeFile(cmd_exclude, cmd_exclude_txt)
cmd_pass = name_dir + "/pass"
mw.execShell("chmod 755 " + cmd_pass)
if os.path.exists(cmd_pass):
mw.execShell("chmod 755 " + cmd_pass)
mw.writeFile(cmd_pass, t['password'])
mw.execShell("chmod 600 " + cmd_pass)

Loading…
Cancel
Save