rsyncd添加目录后统一为www权限,避免混乱

This commit is contained in:
midoks
2022-11-01 21:06:32 +08:00
parent a13c366813
commit 31fcd80877
+8
View File
@@ -363,6 +363,10 @@ def addRec():
args_path = args['path']
args_ps = args['ps']
if not mw.isAppleSystem():
mw.execShell("mkdir -p " + args_path)
mw.execShell("chown -R www:www " + args_path)
delRecBy(args_name)
auth_path = appAuthPwd(args_name)
@@ -692,6 +696,10 @@ def lsyncdAdd():
ip = args['ip']
path = args['path']
if not mw.isAppleSystem():
mw.execShell("mkdir -p " + args_path)
mw.execShell("chown -R www:www " + args_path)
conn_type = args['conn_type']
secret_key = args['secret_key']
delete = args['delete']