Skip to content

Instantly share code, notes, and snippets.

@perezpaya
Last active August 29, 2015 13:56
Show Gist options
  • Save perezpaya/9218805 to your computer and use it in GitHub Desktop.
Save perezpaya/9218805 to your computer and use it in GitHub Desktop.
#! /bin/bash
# Call Script -> curl https://gist.githubusercontent.com/alexperezpaya/9218805/raw/0ffe4f69a9cae16664cb781f01ef0497c784cc0c/install.sh | sudo DOMAIN=git.example.com DEB_URL=https://downloads-packages.s3.amazonaws.com/gitlab_6.6.0-pre1.omnibus.3-1.ubuntu.12.04_amd64.deb sh
sudo apt-get install openssh-server
sudo apt-get install postfix # sendmail or exim is also OK
sudo wget $DEB_URL
sudo dpkg -i gitlab*.deb # this is the .deb you downloaded
sudo gitlab-ctl reconfigure
sudo mkdir -p /etc/gitlab
sudo touch /etc/gitlab/gitlab.rb
sudo chmod 600 /etc/gitlab/gitlab.rb
echo 'external_url '$DOMAIN > /etc/gitlab/gitlab.rb
sudo gitlab-ctl reconfigure
echo '###################################'
echo '## Creating default admin user ##'
echo '###################################'
gitlab-rake db:seed_fu RAILS_ENV=production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment