@@ -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