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
16 changes: 15 additions & 1 deletion 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="5-4-stable"

# Define the version of ruby the environment that we are installing for
export RUBY_VERSION="1.9.3-p392"
Expand Down Expand Up @@ -124,6 +124,12 @@ cd /home/git/gitlab
### Copy the example GitLab config
su git -c "cp config/gitlab.yml.example config/gitlab.yml"

### Copy the example Puma config
su git -c "cp config/puma.rb.example config/puma.rb"

### Create the tmp/sockets directory for Gitlab
su git -c "mkdir -p tmp/sockets"

### Change gitlabhq hostname to GL_HOSTNAME
sed -i "s/ host: localhost/ host: $GL_HOSTNAME/g" config/gitlab.yml

Expand Down Expand Up @@ -162,6 +168,11 @@ su git -c "bundle install --deployment --without development test postgres"
export force=yes
su git -c "bundle exec rake gitlab:setup RAILS_ENV=production"

# Initialise Gitlab-shell
# Force it to be silent (issue 31)
export force=yes
su git -c "bundle exec rake gitlab:shell:setup RAILS_ENV=production"

## Install init script
curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/master/init.d/gitlab-centos
chmod +x /etc/init.d/gitlab
Expand All @@ -171,6 +182,9 @@ chmod +x /etc/init.d/gitlab
# Add after ". /etc/rc.d/init.d/functions" (row 17).
sed -i "17 a source /etc/profile.d/rvm.sh\nrvm use $RUBY_VERSION" /etc/init.d/gitlab

## Install unicorn (issue 38)
gem install unicorn

### Enable and start
chkconfig gitlab on
service gitlab start
Expand Down