@@ -524,7 +524,7 @@ def build_sitemap(www_root: Path, group):
524
524
sitemap_file .write (
525
525
template .render (languages = LANGUAGES , versions = VERSIONS ) + "\n "
526
526
)
527
- sitemap_file .chmod (0o775 )
527
+ sitemap_file .chmod (0o664 )
528
528
run (["chgrp" , group , sitemap_file ])
529
529
530
530
@@ -535,7 +535,7 @@ def build_404(www_root: Path, group):
535
535
return
536
536
not_found_file = www_root / "404.html"
537
537
shutil .copyfile (HERE / "templates" / "404.html" , not_found_file )
538
- not_found_file .chmod (0o775 )
538
+ not_found_file .chmod (0o664 )
539
539
run (["chgrp" , group , not_found_file ])
540
540
541
541
@@ -1023,8 +1023,8 @@ def main():
1023
1023
else :
1024
1024
lock .close ()
1025
1025
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 )
1028
1028
build_robots_txt (args .www_root , args .group , args .skip_cache_invalidation )
1029
1029
major_symlinks (args .www_root , args .group )
1030
1030
dev_symlink (args .www_root , args .group )
0 commit comments