Skip to content
Snippets Groups Projects
Commit 6be7bedd authored by David Fifield's avatar David Fifield
Browse files

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
parent 1d6a98a4
No related branches found
No related tags found
No related merge requests found
......@@ -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.
```
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`.
```
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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment