Split echoes

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

View File

@ -6347,6 +6347,8 @@ function install_gogs {
apt-get -y install golang libpam0g-dev
if ! grep -q "export GOPATH=/home/git/go" ~/.bashrc; then
echo 'export GOPATH=/home/git/go' >> ~/.bashrc
fi
if ! grep -q "systemctl set-environment GOPATH=/home/git/go" ~/.bashrc; then
echo 'systemctl set-environment GOPATH=/home/git/go' >> ~/.bashrc
fi
if [ ! -d $GOPATH ]; then