Skip to content
This repository was archived by the owner on Sep 6, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions gitlab-install-el6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
export GL_HOSTNAME=$HOSTNAME

# Install from this GitLab branch
export GL_GIT_BRANCH="5-0-stable"
export GL_GIT_BRANCH="6-5-stable"

# Define the version of ruby the environment that we are installing for
export RUBY_VERSION="1.9.3-p392"
Expand All @@ -34,6 +34,10 @@ die()
echo "### Check OS (we check if the kernel release contains el6)"
uname -r | grep "el6" || die 1 "Not RHEL or CentOS 6 (el6)"

# Disable selinux
setenforce 0
sed -i "s/SELINUX=enforcing/SELINUX=permissive/g" /etc/sysconfig/selinux

# Install base packages
yum -y install git

Expand All @@ -50,14 +54,8 @@ curl -L get.rvm.io | bash -s stable
## Load RVM
source /etc/profile.d/rvm.sh

## Fix for missing psych
## *It seems your ruby installation is missing psych (for YAML output).
## *To eliminate this warning, please install libyaml and reinstall your ruby.
## Run rvm pkg and add --with-libyaml-dir
rvm pkg install libyaml

## Install Ruby (use command to force non-interactive mode)
command rvm install $RUBY_VERSION --with-libyaml-dir=/usr/local/rvm/usr
command rvm install $RUBY_VERSION
rvm --default use $RUBY_VERSION

## Install core gems
Expand Down