The source project of this merge request has been removed.
lib/backup: fix broken permissions when creating repo dir
What does this MR do?
This MR fixes an issue where gitlab:backup:restore will not work because the repositories directory is set up with bad permissions. The bad permissions will prevent access to the repositories by the git user, causing all kinds of troubles (e.g. gitlab-shell won't install hooks).
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
Rake task gitlab:backup:restore would complete successfully, but gitlab:check will report errors and gitlab cannot access repos.
Screenshots (if relevant)
- repositories.old.1472478726 was created without the fix
- repositories was created with the fix
Does this MR meet the acceptance criteria?
-
CHANGELOG entry added -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the style guides -
Branch has no merge conflicts with master
(if you do - rebase it please) -
Squashed related commits together