Skip to content

Instantly share code, notes, and snippets.

@githubutilities
Created January 28, 2016 12:20
Show Gist options
  • Save githubutilities/198345ec01e747500403 to your computer and use it in GitHub Desktop.
Save githubutilities/198345ec01e747500403 to your computer and use it in GitHub Desktop.
Ubuntu insall script
#! /usr/bin/env bash
cd "$(dirname "${BASH_SOURCE}")";
# Ask sudo upfront
sudo -v
# Install and configure the necessary dependencies
sudo apt-get install --yes curl openssh-server ca-certificates postfix
# Add the GitLab package server and install the package
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install --yes gitlab-ce
# Configure and start GitLab
sudo gitlab-ctl reconfigure
# Reference
# * https://about.gitlab.com/downloads/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment