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:
Marin Jankovski 2016-02-24 11:07:47 +00:00
commit e72a6f0e25
1 changed files with 11 additions and 0 deletions

View File

@ -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