Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
wget "${STASH_VERSION}.tar.gz"
tar xvzf "atlassian-stash-${STASH_VERSION}.tar.gz"
sudo adduser --disabled-login --shell /bin/bash --gecos 'Stash' stash
sudo mv "atlassian-stash-${STASH_VERSION}" /home/stash/stash
sudo -u stash mkdir /home/stash/stash-data
# Change STASH_HOME to /home/stash/stash-data, increese JVM_MAXIMUM_MEMORY, uncomment `umask 0027`
sudo -u stash vim /home/stash/stash/bin/
sudo chown -R stash:stash /home/stash
# Start
sudo -u stash /home/stash/stash/bin/
# Setup postgres db
sudo -u postgres psql -d template1
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get install -y software-properties-common python-software-properties
sudo add-apt-repository -y ppa:nginx/development
sudo add-apt-repository -y ppa:git-core/ppa
sudo add-apt-repository -y ppa:webupd8team/java
sudo sh -c 'echo "deb $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y git oracle-java8-installer nginx-full ruby1.9.1
sudo apt-get install -y postgresql-9.4 # or mysql-server
sudo gem install rmate
sudo dpkg-reconfigure tzdata
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment