mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 06:20:12 +01: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
@ -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…
Reference in New Issue
Block a user