Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Update #64

wants to merge 1 commit into from

2 participants


During the installation I found a bug: gitlab/config/database.yml.example doesn't exist. Changed it to gitlab/config/database.yml.mysql.


Outdated install script was removed.

@Razer6 Razer6 closed this
@tschoffelen tschoffelen deleted the unknown repository branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 2, 2013
  1. @tschoffelen
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 5 deletions.
  1. +5 −5 install/
10 install/
@@ -69,7 +69,7 @@ sudo gem install bundler
sudo su -l gitlab -c "git clone git:// gitlab" # Using master everywhere.
sudo su -l gitlab -c "cd gitlab && mkdir tmp"
sudo su -l gitlab -c "cd gitlab/config && cp gitlab.yml.example gitlab.yml"
-sudo su -l gitlab -c "cd gitlab/config && cp database.yml.example database.yml"
+sudo su -l gitlab -c "cd gitlab/config && cp database.yml.mysql database.yml"
sudo sed -i 's/"secure password"/"'$userPassword'"/' /home/gitlab/gitlab/config/database.yml # Insert the mysql root password.
sudo su -l gitlab -c "cd gitlab && bundle install --without development test --deployment"
sudo su -l gitlab -c "cd gitlab && bundle exec rake gitlab:app:setup RAILS_ENV=production"
@@ -84,10 +84,6 @@ sudo usermod -g git gitlab
# Set the first occurrence of host in the Gitlab config to the publicly available domain name
sudo sed -i '0,/host/s/localhost/'`wget -qO- http://instance-data/latest/meta-data/public-hostname`'/' /home/gitlab/gitlab/config/gitlab.yml
-# Tighten security
-sudo -u git chmod 750 /home/git/gitolite
-sudo -u gitlab chmod 660 /home/gitlab/gitlab/config/*.yml
# Install and configure Nginx
sudo apt-get install -y nginx
sudo wget -P /etc/nginx/sites-available/
@@ -98,6 +94,10 @@ sudo sed -i 's/YOUR_SERVER_FQDN/'`wget -qO- http://instance-data/latest/meta-dat
# Configure Unicorn
sudo -u gitlab cp /home/gitlab/gitlab/config/unicorn.rb.example /home/gitlab/gitlab/config/unicorn.rb
+# Tighten security
+sudo -u git chmod 750 /home/git/gitolite
+sudo -u gitlab chmod 660 /home/gitlab/gitlab/config/*.yml
# Create a Gitlab service
sudo wget -P /etc/init.d/
sudo chmod +x /etc/init.d/gitlab && sudo update-rc.d gitlab defaults
Something went wrong with that request. Please try again.