No need to chown hooks in backup script any mroe

This commit is contained in:
randx 2012-08-26 01:40:01 +03:00
parent 2e836fa428
commit 867f46076e

View file

@ -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