mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-04 00:17:06 +00:00
add -H option to /bin/chown call in case 'encrypted' is a symbolic link
This commit is contained in:
parent
0b2e504d7f
commit
0f09880aa6
@ -319,7 +319,7 @@ def perform_backup(full_backup):
|
||||
# Change ownership of backups to the user-data user, so that the after-bcakup
|
||||
# script can access them.
|
||||
if get_target_type(config) == 'file':
|
||||
shell('check_call', ["/bin/chown", "-R", env["STORAGE_USER"], backup_dir])
|
||||
shell('check_call', ["/bin/chown", "-RH", env["STORAGE_USER"], backup_dir])
|
||||
|
||||
# Execute a post-backup script that does the copying to a remote server.
|
||||
# Run as the STORAGE_USER user, not as root. Pass our settings in
|
||||
|
Loading…
Reference in New Issue
Block a user