mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #20402 from cachedout/issue_19643
Copy perms of destination file when backing up
This commit is contained in:
commit
cf2bc2d9c0
@ -606,6 +606,7 @@ def backup_minion(path, bkroot):
|
||||
shutil.copyfile(path, bkpath)
|
||||
if not salt.utils.is_windows():
|
||||
os.chown(bkpath, fstat.st_uid, fstat.st_gid)
|
||||
os.chmod(bkpath, fstat.st_mode)
|
||||
|
||||
|
||||
def path_join(*parts):
|
||||
|
Loading…
Reference in New Issue
Block a user