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

Set permissions of backup dir to g+s

parent 8469f9e0
No related merge requests found
Pipeline #
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