mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
fix rsync's chmod on local copy
rsync's --chmod works a bit oddly, it only affects the source files. To make it set the destintation with the perms set in --chmod, the --perms flag must also be included.
This commit is contained in:
parent
e8a5d2b354
commit
d2b5b86ed5
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ def update_serverwebroot(serverwebroot, repo_section):
|
|||
|
||||
|
||||
def _local_sync(fromdir, todir):
|
||||
rsyncargs = ['rsync', '--recursive', '--links', '--times',
|
||||
rsyncargs = ['rsync', '--recursive', '--links', '--times', '--perms',
|
||||
'--one-file-system', '--delete', '--chmod=Da+rx,Fa-x,a+r,u+w']
|
||||
# use stricter rsync checking on all files since people using offline mode
|
||||
# are already prioritizing security above ease and speed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue