Fixed some hardcoded paths
New config option: git_hooks_path
This commit is contained in:
parent
04b2864b64
commit
c81d4ab4a9
4 changed files with 7 additions and 2 deletions
|
@ -145,6 +145,7 @@ 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 #{Gitlab.config.git_base_path}**/hooks/post-receive"
|
||||
]
|
||||
permission_commands.each { |command| Kernel.system(command) }
|
||||
puts "[DONE]".green
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue