[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake/master] Add --chown=:snowflake to rsync commands.
commit 5732f1a630e0c8021f220d8de4a34a0f22353f8a
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Fri Oct 11 10:37:06 2019 -0600
Add --chown=:snowflake to rsync commands.
Thanks cohosh for helping debug this. Uploaded files need correct group
ownership.
---
proxy/README.md | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/proxy/README.md b/proxy/README.md
index 538366f..61468c0 100644
--- a/proxy/README.md
+++ b/proxy/README.md
@@ -50,15 +50,17 @@ 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 --chmod ug=rw,D+x --perms --delete -crv build/ staticiforme:/srv/snowflake.torproject.org/htdocs/
+rsync -n --chown=:snowflake --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 --chmod ug=rw,D+x --perms --delete -crv build/ staticiforme:/srv/snowflake.torproject.org/htdocs/
+rsync --chown=:snowflake --chmod ug=rw,D+x --perms --delete -crv build/ staticiforme:/srv/snowflake.torproject.org/htdocs/
```
+You can ignore errors of the form `rsync: failed to set permissions on "<dirname>/": Operation not permitted (1)`.
+
Then run the command to copy the new files to the live web servers:
```
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits