From b77c8a6c31e5ee1c1c5534c5caa87bd191b6175d Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Fri, 7 Feb 2014 12:58:55 +0100 Subject: [PATCH] Use local instead of instance variables in ERB --- config/templates/gitlab-core/bundle_exec_wrapper.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/templates/gitlab-core/bundle_exec_wrapper.erb b/config/templates/gitlab-core/bundle_exec_wrapper.erb index 13d54a2..368388e 100644 --- a/config/templates/gitlab-core/bundle_exec_wrapper.erb +++ b/config/templates/gitlab-core/bundle_exec_wrapper.erb @@ -1,12 +1,12 @@ #!/bin/bash -export PATH=<%= @install_dir %>/bin:<%= @install_dir %>/embedded/bin:$PATH +export PATH=<%= install_dir %>/bin:<%= install_dir %>/embedded/bin:$PATH # default to RAILS_ENV=production if [[ -z $RAILS_ENV ]]; then export RAILS_ENV=production fi -gitlab_user=$(ls -lLd <%= @install_dir %>/embedded/service/gitlab-core/log | awk '{ print $3 }') +gitlab_user=$(ls -lLd <%= install_dir %>/embedded/service/gitlab-core/log | awk '{ print $3 }') -cd <%= @install_dir %>/embedded/service/gitlab-core -exec <%= @install_dir %>/embedded/bin/chpst -u $gitlab_user -U $gitlab_user <%= @install_dir %>/embedded/bin/bundle exec <%= @command %> +cd <%= install_dir %>/embedded/service/gitlab-core +exec <%= install_dir %>/embedded/bin/chpst -u $gitlab_user -U $gitlab_user <%= install_dir %>/embedded/bin/bundle exec <%= command %> -- libgit2 0.21.2