Update index.py

This commit is contained in:
dami
2025-11-13 01:30:04 +08:00
parent 45ff09dadb
commit f4f327f25d
+2 -1
View File
@@ -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)