Commit ac95f950 authored by Martin's avatar Martin

Allow backup to complete if "file changed as we read it"

parent f3445b33
......@@ -152,7 +152,7 @@ class cronjob_backup_mail extends cronjob {
}
}
if($retval == 0){
if($retval <= 1){
chown($mail_backup_dir.'/'.$mail_backup_file, $backupusername);
chgrp($mail_backup_dir.'/'.$mail_backup_file, $backupgroup);
chmod($mail_backup_dir.'/'.$mail_backup_file, 0640);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment