Merge branch 'unset_ruby_env_vars' into 'master'
Unset ruby envs for gitlab-rake and gitlab-rails scripts. Fixes gitlab-org/gitlab-ce#13689 See merge request !658
This commit is contained in:
commit
e72a6f0e25
|
@ -1,5 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Unset ENV variables that might interfere with
|
||||
# omnibus-gitlab ruby env (looking at you rvm)
|
||||
for ruby_env_var in RUBYOPT \
|
||||
BUNDLE_BIN_PATH \
|
||||
BUNDLE_GEMFILE \
|
||||
GEM_PATH \
|
||||
GEM_HOME
|
||||
do
|
||||
unset $ruby_env_var
|
||||
done
|
||||
|
||||
error_echo()
|
||||
{
|
||||
echo "$1" 2>& 1
|
||||
|
|
Loading…
Reference in New Issue