Skip to content

Commit cddba20

Browse files
committed
Better rights for sitemap and 404.
1 parent 7047721 commit cddba20

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build_docs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ def build_sitemap(www_root: Path, group):
524524
sitemap_file.write(
525525
template.render(languages=LANGUAGES, versions=VERSIONS) + "\n"
526526
)
527-
sitemap_file.chmod(0o775)
527+
sitemap_file.chmod(0o664)
528528
run(["chgrp", group, sitemap_file])
529529

530530

@@ -535,7 +535,7 @@ def build_404(www_root: Path, group):
535535
return
536536
not_found_file = www_root / "404.html"
537537
shutil.copyfile(HERE / "templates" / "404.html", not_found_file)
538-
not_found_file.chmod(0o775)
538+
not_found_file.chmod(0o664)
539539
run(["chgrp", group, not_found_file])
540540

541541

@@ -1023,8 +1023,8 @@ def main():
10231023
else:
10241024
lock.close()
10251025

1026-
build_sitemap(args.www_root)
1027-
build_404(args.www_root)
1026+
build_sitemap(args.www_root, args.group)
1027+
build_404(args.www_root, args.group)
10281028
build_robots_txt(args.www_root, args.group, args.skip_cache_invalidation)
10291029
major_symlinks(args.www_root, args.group)
10301030
dev_symlink(args.www_root, args.group)

0 commit comments

Comments
 (0)