Commit ffdda12f663d6a634689f7c7b16560bcf792415e
1 parent
05fa1f16
Exists in
master
and in
4 other branches
Line not needed anymore
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
lib/tasks/gitlab/backup.rake
... | ... | @@ -144,8 +144,7 @@ namespace :gitlab do |
144 | 144 | if Kernel.system("cd #{File.dirname(project.second)} > /dev/null 2>&1 && git clone --bare #{backup_path_repo}/#{project.first}.bundle #{project.first}.git > /dev/null 2>&1") |
145 | 145 | permission_commands = [ |
146 | 146 | "sudo chmod -R g+rwX #{Gitlab.config.git_base_path}", |
147 | - "sudo chown -R #{Gitlab.config.ssh_user}:#{Gitlab.config.ssh_user} #{Gitlab.config.git_base_path}", | |
148 | - "sudo chown gitlab:gitlab #{Gitlab.config.git_base_path}**/hooks/post-receive" | |
147 | + "sudo chown -R #{Gitlab.config.ssh_user}:#{Gitlab.config.ssh_user} #{Gitlab.config.git_base_path}" | |
149 | 148 | ] |
150 | 149 | permission_commands.each { |command| Kernel.system(command) } |
151 | 150 | puts "[DONE]".green | ... | ... |