sh Atlassian Stash安装
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Atlassian Stash安装相关的知识,希望对你有一定的参考价值。
#!/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
#!/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
以上是关于sh Atlassian Stash安装的主要内容,如果未能解决你的问题,请参考以下文章
ini 用于管理Atlassian Stash应用程序的Ubuntu Upstart脚本
在 Atlassian Bamboo 中,我如何将我的脚本指向 Stash Repo 中的文件?
atlassian账号怎么注册?
sh db_stash_pop.sh
列出分支的 git/stash 拉取请求
sh preview_stash