Update index.py

pull/693/head
Mr Chen 4 months ago
parent 43b9297476
commit ebd1cfe203
  1. 7
      plugins/rsyncd/index.py

@ -730,6 +730,13 @@ def lsyncdAdd():
path = args['path'] path = args['path']
if not mw.isAppleSystem(): if not mw.isAppleSystem():
if os.path.exists(path):
import utils.file as utils_file
info = utils_file.getAccess(path)
file_chown = info['chown']
if file_chown != 'www':
return mw.returnJson(False, '建议手动执行命令: chown -R www:www '+ args_path)
else:
os.system("mkdir -p " + path + " &") os.system("mkdir -p " + path + " &")
os.system("chown -R www:www " + path + " &") os.system("chown -R www:www " + path + " &")
os.system("chmod -R 755 " + path + " &") os.system("chmod -R 755 " + path + " &")

Loading…
Cancel
Save