Simplify server installation

This commit is contained in:
世界
2022-08-27 22:27:58 +08:00
parent 561a9e5275
commit 122daa4bfb
6 changed files with 22 additions and 3 deletions

View File

@@ -2,6 +2,10 @@
set -e -o pipefail
if [ -d /usr/local/go ]; then
export PATH="$PATH:/usr/local/go/bin"
fi
DIR=$(dirname "$0")
PROJECT=$DIR/../..

View File

@@ -2,6 +2,10 @@
set -e -o pipefail
if [ -d /usr/local/go ]; then
export PATH="$PATH:/usr/local/go/bin"
fi
DIR=$(dirname "$0")
PROJECT=$DIR/../..

7
release/local/install_go.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e -o pipefail
curl -o go.tar.gz https://go.dev/dl/go1.19.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go.tar.gz
rm go.tar.gz

View File

@@ -2,6 +2,10 @@
set -e -o pipefail
if [ -d /usr/local/go ]; then
export PATH="$PATH:/usr/local/go/bin"
fi
DIR=$(dirname "$0")
PROJECT=$DIR/../..