Don't wait for bashrc

This commit is contained in:
Bob Mottram 2016-04-29 09:36:25 +01:00
parent eb11257b77
commit 09bac71090
No known key found for this signature in database
GPG Key ID: BA68F26108DC9F87
1 changed files with 7 additions and 1 deletions

View File

@ -6345,9 +6345,11 @@ function install_gogs {
# install Go # install Go
apt-get -y install golang libpam0g-dev apt-get -y install golang libpam0g-dev
export GOPATH=/home/git/go
if ! grep -q "export GOPATH=/home/git/go" ~/.bashrc; then if ! grep -q "export GOPATH=/home/git/go" ~/.bashrc; then
echo 'export GOPATH=/home/git/go' >> ~/.bashrc echo 'export GOPATH=/home/git/go' >> ~/.bashrc
fi fi
systemctl set-environment GOPATH=/home/git/go
if ! grep -q "systemctl set-environment GOPATH=/home/git/go" ~/.bashrc; then if ! grep -q "systemctl set-environment GOPATH=/home/git/go" ~/.bashrc; then
echo 'systemctl set-environment GOPATH=/home/git/go' >> ~/.bashrc echo 'systemctl set-environment GOPATH=/home/git/go' >> ~/.bashrc
fi fi
@ -10085,8 +10087,12 @@ function install_ipfs {
adduser --disabled-login --gecos 'Gogs' git adduser --disabled-login --gecos 'Gogs' git
# install Go # install Go
export GOPATH=/home/git/go
if ! grep -q "export GOPATH=/home/git/go" ~/.bashrc; then if ! grep -q "export GOPATH=/home/git/go" ~/.bashrc; then
echo 'export GOPATH=/home/git/go' >> ~/.bashrc echo 'export GOPATH=/home/git/go' >> ~/.bashrc
fi
systemctl set-environment GOPATH=/home/git/go
if ! grep -q "systemctl set-environment GOPATH=/home/git/go" ~/.bashrc; then
echo 'systemctl set-environment GOPATH=/home/git/go' >> ~/.bashrc echo 'systemctl set-environment GOPATH=/home/git/go' >> ~/.bashrc
fi fi
export GOPATH=/home/git/go export GOPATH=/home/git/go