Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/sh
STASH_VERSION='3.8.0'
wget "https://www.atlassian.com/software/stash/downloads/binary/atlassian-stash-${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/setenv.sh
sudo chown -R stash:stash /home/stash
# Start
sudo -u stash /home/stash/stash/bin/start-stash.sh
# Setup postgres db
sudo -u postgres psql -d template1
#!/bin/sh
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 http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | 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