The initial metadata sync is done within the context of a charm hook with nothing to modify the user performing the rsync call. As result, the rsync is performed by root, and the metadata files synced are owned by root.
The fix should be to perform the initial rsync as the 'www-sync' user.
The initial metadata sync is done within the context of a charm hook with nothing to modify the user performing the rsync call. As result, the rsync is performed by root, and the metadata files synced are owned by root.
The fix should be to perform the initial rsync as the 'www-sync' user.