upgrade go as user forgejo
This commit is contained in:
parent
391360b320
commit
dc718d4f7a
|
@ -156,12 +156,15 @@ case "$1" in
|
||||||
adduser --quiet --comment forgejo --disabled-password forgejo
|
adduser --quiet --comment forgejo --disabled-password forgejo
|
||||||
chown -R forgejo:forgejo .
|
chown -R forgejo:forgejo .
|
||||||
if [ "$DEP_GOLANG_NODEB_REV" ];then
|
if [ "$DEP_GOLANG_NODEB_REV" ];then
|
||||||
go install golang.org/dl/go$DEP_GOLANG_VER.$DEP_GOLANG_NODEB_REV@latest
|
su forgejo -c "./.ci-make.sh forgejo-test-deps_upgrade-go $DEP_GOLANG_VER $DEP_GOLANG_NODEB_REV"
|
||||||
ln -s ~/go/bin/go$DEP_GOLANG_VER.$DEP_GOLANG_NODEB_REV ~/go/bin/go
|
fi
|
||||||
|
;;
|
||||||
|
"forgejo-test-deps_upgrade-go")
|
||||||
|
go install golang.org/dl/go$2.$3@latest
|
||||||
|
ln -s ~/go/bin/go$2.$3 ~/go/bin/go
|
||||||
export PATH="$HOME/go/bin:$PATH"
|
export PATH="$HOME/go/bin:$PATH"
|
||||||
go download
|
go download
|
||||||
go version
|
go version
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue