summaryrefslogtreecommitdiff
path: root/utils/lib.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2021-11-18 19:49:01 +0000
committerGitHub <noreply@github.com>2021-11-18 19:49:01 +0000
commit1e997386e923b10b7f9e551f3825b7e9605bc890 (patch)
tree62993365e03da43ff574b65d8b85bc1295c590c5 /utils/lib.sh
parent58871e10ffd76d3e4ca2ca422f8f2498f6797ded (diff)
parent79b41478ac7290453b73bf00c4cdcd84e588f051 (diff)
Merge pull request #508 from return42/arm64
[mod] Tools to install and maintain golang binaries & packages.
Diffstat (limited to 'utils/lib.sh')
-rwxr-xr-xutils/lib.sh35
1 files changed, 0 insertions, 35 deletions
diff --git a/utils/lib.sh b/utils/lib.sh
index 7f6ff58c4..4472b9d32 100755
--- a/utils/lib.sh
+++ b/utils/lib.sh
@@ -504,7 +504,6 @@ install_template() {
done
}
-
service_is_available() {
# usage: service_is_available <URL>
@@ -825,40 +824,6 @@ EOF
build_msg GH-PAGES "deployed"
}
-# golang
-# ------
-
-go_is_available() {
-
- # usage: go_is_available $SERVICE_USER && echo "go is installed!"
-
- sudo -i -u "${1}" which go &>/dev/null
-}
-
-install_go() {
-
- # usage: install_go "${GO_PKG_URL}" "${GO_TAR}" "${SERVICE_USER}"
-
- local _svcpr=" ${_Yellow}|${3}|${_creset} "
-
- rst_title "Install Go in user's HOME" section
-
- rst_para "download and install go binary .."
- cache_download "${1}" "${2}"
-
- tee_stderr 0.1 <<EOF | sudo -i -u "${3}" | prefix_stdout "$_svcpr"
-echo \$PATH
-echo \$GOPATH
-mkdir -p \$HOME/local
-rm -rf \$HOME/local/go
-tar -C \$HOME/local -xzf ${CACHE}/${2}
-EOF
- sudo -i -u "${3}" <<EOF | prefix_stdout
-! which go >/dev/null && echo "ERROR - Go Installation not found in PATH!?!"
-which go >/dev/null && go version && echo "congratulations -- Go installation OK :)"
-EOF
-}
-
# system accounts
# ---------------