1
0
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:
Hans-Christoph Steiner 2014-10-09 21:22:50 -04:00
parent e8a5d2b354
commit d2b5b86ed5

View File

@ -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