Add --chmod ug=rw,D+x --perms to rsync commands.

This is an attempt to solve mixed-ownership permission issues.
https://bugs.torproject.org/31496
This commit is contained in:
David Fifield 2019-08-23 22:47:58 -06:00
parent 1d6a98a40e
commit 6be7bedd06

View file

@ -50,13 +50,13 @@ npm run build
Do a "dry run" rsync with `-n` to check that only expected files are being changed. If you don't understand why a file would be updated, you can add the `-i` option to see the reason. Do a "dry run" rsync with `-n` to check that only expected files are being changed. If you don't understand why a file would be updated, you can add the `-i` option to see the reason.
``` ```
rsync -n --delete -crv build/ staticiforme:/srv/snowflake.torproject.org/htdocs/ rsync -n --chmod ug=rw,D+x --perms --delete -crv build/ staticiforme:/srv/snowflake.torproject.org/htdocs/
``` ```
If it looks good, then repeat the rsync without `-n`. If it looks good, then repeat the rsync without `-n`.
``` ```
rsync --delete -crv build/ staticiforme:/srv/snowflake.torproject.org/htdocs/ rsync --chmod ug=rw,D+x --perms --delete -crv build/ staticiforme:/srv/snowflake.torproject.org/htdocs/
``` ```
Then run the command to copy the new files to the live web servers: Then run the command to copy the new files to the live web servers: