Skip to content
Snippets Groups Projects
Commit babd7b0f authored by Bob Mottram's avatar Bob Mottram
Browse files

Alter the go version used by gogs

parent 22b90f4c
No related branches found
No related tags found
No related merge requests found
......@@ -204,6 +204,13 @@ function upgrade_golang {
rootdir=
mesh_upgrade_golang
# alter the go version used by the gogs daemon
if [ -f /etc/systemd/system/gogs.service ]; then
sed -i "s|Environment=.*|Environment=\"USER=gogs\" \"HOME=/home/gogs\" \"GOPATH=/home/go/go${GO_VERSION}\"|g" /etc/systemd/system/gogs.service
systemctl daemon-reload
systemctl restart gogs
fi
echo "upgrade_golang:$GO_VERSION" >> $COMPLETION_FILE
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment