mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
* fix: Add default access permission for new built-in group users * fix: Add default access permission for new built-in group users * fix: File is not `gofumpt`-ed (gofumpt) * fix: refactor build.sh #1081 * fix: rollback * fix: newline * fix: refactor build.sh rename var #1081
This commit is contained in:
parent
8da50b7893
commit
349ce7f1d4
4
build.sh
4
build.sh
@ -4,8 +4,8 @@ curl www.google.com -o /dev/null --connect-timeout 5 2 > /dev/null
|
||||
if [ $? == 0 ]
|
||||
then
|
||||
echo "Successfully connected to Google, no need to use Go proxy"
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o server .
|
||||
else
|
||||
echo "Google is blocked, Go proxy is enabled: GOPROXY=https://goproxy.cn,direct"
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOPROXY=https://goproxy.cn,direct go build -ldflags="-w -s" -o server .
|
||||
GO_PROXY_SETTING=GOPROXY=https://goproxy.cn,direct
|
||||
fi
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $GO_PROXY_SETTING go build -ldflags="-w -s" -o server .
|
||||
|
Loading…
x
Reference in New Issue
Block a user