From 4de0b5124e89e9566709cff83ce5bcdeaeec1343 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Wed, 16 Sep 2020 20:00:56 +0500 Subject: [PATCH] bug fix: preseve file permissions while creating conf backups --- plogical/upgrade.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 429234e5b..ca87361a2 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -1866,10 +1866,10 @@ imap_folder_list_limit = 0 command = 'mkdir %s' % (configbackups) Upgrade.executioner(command, 0) - command = 'cp -R %s %s' % (dovecotConfPath, configbackups) + command = 'cp -pR %s %s' % (dovecotConfPath, configbackups) Upgrade.executioner(command, 0) - command = 'cp -R %s %s' % (postfixConfPath, configbackups) + command = 'cp -pR %s %s' % (postfixConfPath, configbackups) Upgrade.executioner(command, 0) if os.path.exists(CentOSPath):