Skip to content
Snippets Groups Projects
Commit da017f4f authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Merge branch 'centos_gitlab_shell' into 'master'

Centos Gitlab Shell
parents 7585fdf9 98d399b1
No related branches found
No related tags found
1 merge request!44Backport CentOS fixes to 6-6-pre
Loading
Loading
@@ -25,17 +25,16 @@ dependency "rsync"
source :git => "https://gitlab.com/gitlab-org/gitlab-shell.git"
 
build do
command "mkdir -p #{install_dir}/embedded/service/gitlab-shell"
command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/service/gitlab-shell/"
block do
env_shebang = "#!/usr/bin/env ruby"
`grep -r -l '^#{env_shebang}' #{project_dir}`.split("\n").each do |ruby_script|
script = File.read(ruby_script)
next if script.start_with?("#!#{install_dir}") # Shebang looks good, skip this script
erb :dest => ruby_script,
erb :dest => ruby_script.sub(project_dir, "#{install_dir}/embedded/service/gitlab-shell"),
:source => "ruby_script_wrapper.erb",
:mode => 0755,
:vars => {:script => script, :install_dir => install_dir}
end
end
command "mkdir -p #{install_dir}/embedded/service/gitlab-shell"
command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/service/gitlab-shell/"
end
Loading
Loading
@@ -38,6 +38,12 @@ directory ssh_dir do
recursive true
end
 
# If SELinux is enabled, make sure that OpenSSH thinks the .ssh directory of the
# git_user is valid.
execute "chcon -t user_home_t #{ssh_dir}" do
only_if "id -Z"
end
directory log_directory do
owner git_user
recursive true
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