mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-09 00:40:11 +01:00
update local_copy_dir rsync to handle FAT and filesystems with perms
With FAT filesystems, the user, group, and permissions will not be at all preserved. With file systems like ext4 that have perms, the umask might not be set to something that makes sense for the public repo files, which are meant to be published and therefore readible by all. If need be, it would be easy enough to add a config option for rsync's chmod string, to address setups that have specific permissions needs. fixes #23 https://gitlab.com/fdroid/fdroidserver/issues/23
This commit is contained in:
parent
f34c842f55
commit
35ee4b1bc5
@ -143,7 +143,8 @@ def update_serverwebroot(repo_section):
|
||||
|
||||
|
||||
def _local_sync(fromdir, todir):
|
||||
rsyncargs = ['rsync', '--archive', '--one-file-system', '--delete']
|
||||
rsyncargs = ['rsync', '--recursive', '--links', '--times',
|
||||
'--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
|
||||
rsyncargs += ['--checksum']
|
||||
|
Loading…
Reference in New Issue
Block a user