# HG changeset patch # User David Douard # Date 1468949410 -7200 # Node ID 828483a88825624edf26dbbb2ee4ba3e4eb66b17 # Parent dbe73990172bd8122c36b215a2b284ad69660d0c [webctl] set uid of file produced by gen-static-datadir (closes #11298794) diff -r dbe73990172b -r 828483a88825 web/webctl.py --- a/web/webctl.py Tue Jul 19 19:54:59 2016 +0200 +++ b/web/webctl.py Tue Jul 19 19:30:10 2016 +0200 @@ -78,6 +78,7 @@ for dirpath, dirnames, filenames in os.walk(datadir): rel_dirpath = dirpath[len(datadir)+1:] resources.update(osp.join(rel_dirpath, f) for f in filenames) + # locate resources and copy them to destination for resource in resources: dest_resource = osp.join(dest, resource) @@ -88,6 +89,8 @@ copy(osp.join(resource_dir, resource_path), dest_resource) # handle md5 version subdirectory linkdir(dest, osp.join(dest, config.instance_md5_version())) + # ensure generated files are owned by configured uid + config.ensure_uid_directory(dest) print('You can use apache rewrite rule below :\n' 'RewriteRule ^/data/(.*) %s/$1 [L]' % dest)