install go1.21.9
This commit is contained in:
parent
03fcb8fe81
commit
391360b320
2 changed files with 9 additions and 0 deletions
|
@ -155,6 +155,13 @@ case "$1" in
|
|||
ln -sf /usr/lib/go-$DEP_GOLANG_VER/bin/go /usr/local/bin/go
|
||||
adduser --quiet --comment forgejo --disabled-password forgejo
|
||||
chown -R forgejo:forgejo .
|
||||
if [ "$DEP_GOLANG_NODEB_REV" ];then
|
||||
go install golang.org/dl/go$DEP_GOLANG_VER.$DEP_GOLANG_NODEB_REV@latest
|
||||
ln -s ~/go/bin/go$DEP_GOLANG_VER.$DEP_GOLANG_NODEB_REV ~/go/bin/go
|
||||
export PATH="$HOME/go/bin:$PATH"
|
||||
go download
|
||||
go version
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue