Skip to content
Snippets Groups Projects
Commit a1f07a86 authored by Stan Hu's avatar Stan Hu
Browse files

Set permissions of backup dir to g+s

parent 4fb3b9bf
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -13,7 +13,6 @@ v 8.10.1 (unreleased)
- Fix Error 500 when creating Wiki pages with hyphens or spaces
- Ignore invalid trusted proxies in X-Forwarded-For header
- Fix bug where replies to commit notes displayed in the MR discussion tab wouldn't show up on the commit page
- Fix bug where replies to commit notes displayed in the MR discussion tab wouldn't show up on the commit page
- Fix backup restore
 
v 8.10.0
Loading
Loading
Loading
Loading
@@ -54,7 +54,8 @@ module Backup
# Move repos dir to 'repositories.old' dir
bk_repos_path = File.join(path, '..', 'repositories.old.' + Time.now.to_i.to_s)
FileUtils.mv(path, bk_repos_path)
FileUtils.mkdir_p(path)
# This is expected from gitlab:check
FileUtils.mkdir_p(path, mode: 2770)
end
 
Project.find_each(batch_size: 1000) do |project|
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment