Last active
August 29, 2015 13:56
-
-
Save perezpaya/9218805 to your computer and use it in GitHub Desktop.
GitLab Install 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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