Skip to content

Commit

Permalink
Reset a failed delete of a directory back to 755 instead of 644 when …
Browse files Browse the repository at this point in the history
…cleaning up an upgrade
  • Loading branch information
alanhartless committed Aug 18, 2016
1 parent 382e25e commit 1033f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -1252,8 +1252,8 @@ function remove_mautic_deleted_files(array $status)
if (file_exists($dirpath) && !glob($dirpath.'/*')) {
@chmod($dirpath, 0777);
if (!@unlink($dirpath)) {
// Failed to delete, reset the permissions to 644 for safety
@chmod($dirpath, 0644);
// Failed to delete, reset the permissions to 0755 for safety
@chmod($dirpath, 0755);
}
}
}
Expand Down

0 comments on commit 1033f2a

Please sign in to comment.