Split echoes
This commit is contained in:
parent
ccd6da693d
commit
eb11257b77
|
@ -6347,6 +6347,8 @@ function install_gogs {
|
||||||
apt-get -y install golang libpam0g-dev
|
apt-get -y install golang libpam0g-dev
|
||||||
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
|
||||||
|
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
|
||||||
if [ ! -d $GOPATH ]; then
|
if [ ! -d $GOPATH ]; then
|
||||||
|
|
Loading…
Reference in New Issue