Skip to content
Snippets Groups Projects
Commit 867f4607 authored by randx's avatar randx
Browse files

No need to chown hooks in backup script any mroe

parent 2e836fa4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -145,7 +145,6 @@ namespace :gitlab do
permission_commands = [
"sudo chmod -R g+rwX #{Gitlab.config.git_base_path}",
"sudo chown -R #{Gitlab.config.ssh_user}:#{Gitlab.config.ssh_user} #{Gitlab.config.git_base_path}",
"sudo chown gitlab:gitlab /home/git/repositories/**/hooks/post-receive"
]
permission_commands.each { |command| Kernel.system(command) }
puts "[DONE]".green
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment