mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
rsyncd添加目录后统一为www权限,避免混乱
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user