mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
20 lines
296 B
Bash
20 lines
296 B
Bash
#!/bin/bash
|
|
# lock global
|
|
touch /tmp/install.lock
|
|
|
|
# lock
|
|
touch /tmp/install-go.lock
|
|
|
|
# install golang
|
|
apt-get update
|
|
apt-get install -y golang
|
|
|
|
# environment variables
|
|
export GOPROXY=https://goproxy.cn
|
|
export GOPATH=/opt/go
|
|
|
|
# unlock global
|
|
rm /tmp/install.lock
|
|
|
|
# unlock
|
|
rm /tmp/install-go.lock |