Commit 16bbe60f8fd8b1a4acd592d0475b3dc8148a77de

Authored by Jacob Vosmaer
1 parent 5f864cf3

Pass the variables to the template

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
config/software/gitlab-shell.rb
@@ -31,7 +31,8 @@ build do @@ -31,7 +31,8 @@ build do
31 script = File.read(ruby_script) 31 script = File.read(ruby_script)
32 erb :dest => ruby_script, 32 erb :dest => ruby_script,
33 :source => "ruby_script_wrapper.erb", 33 :source => "ruby_script_wrapper.erb",
34 - :mode => 0755 34 + :mode => 0755,
  35 + :vars => {:script => script, :install_dir => install_dir}
35 end 36 end
36 end 37 end
37 command "mkdir -p #{install_dir}/embedded/service/gitlab-shell" 38 command "mkdir -p #{install_dir}/embedded/service/gitlab-shell"