summaryrefslogtreecommitdiff
path: root/doc/install
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-10-26 10:57:46 +0000
committerRémy Coutable <remy@rymai.me>2016-10-26 10:57:46 +0000
commit4482d19959616b1fe2f509d9d85d7725bbedc08b (patch)
tree58fb848267f45511396eae6646f3e46d57b32ca7 /doc/install
parenteacb7626ab338d44324ff5b11eea90d4728f1ea3 (diff)
parent01384edd6f7dad755710caa8f8dad0bd4c7da6bc (diff)
downloadgitlab-ce-4482d19959616b1fe2f509d9d85d7725bbedc08b.tar.gz
Merge branch 'users-should-remove-former-go-installation-folder' into 'master'
users should remove former Go installation folder ## What does this MR do? It ensure users installing or updating from source will remove their former Go installation folder in `/usr/local/go`, to avoid raising errors that could lead to new issues being created. ## Are there points in the code the reviewer needs to double check? 1. The `rm -rf` should not be verbose if folder does not exists. 1. May a user have some kind of configuration files in this folder ? ## Why was this MR needed? I did faced the error, that led me to the solution stated here : https://gitlab.com/gitlab-org/gitlab-workhorse/issues/29#note_4155517 gitlab-org/gitlab-workhorse#29 See merge request !6602
Diffstat (limited to 'doc/install')
-rw-r--r--doc/install/installation.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/install/installation.md b/doc/install/installation.md
index c9acc9cdfb0..795e1d23443 100644
--- a/doc/install/installation.md
+++ b/doc/install/installation.md
@@ -142,6 +142,9 @@ gitlab-workhorse we need a Go compiler. The instructions below assume you
use 64-bit Linux. You can find downloads for other platforms at the [Go download
page](https://golang.org/dl).
+ # Remove former Go installation folder
+ sudo rm -rf /usr/local/go
+
curl --remote-name --progress https://storage.googleapis.com/golang/go1.5.3.linux-amd64.tar.gz
echo '43afe0c5017e502630b1aea4d44b8a7f059bf60d7f29dfd58db454d4e4e0ae53 go1.5.3.linux-amd64.tar.gz' | shasum -a256 -c - && \
sudo tar -C /usr/local -xzf go1.5.3.linux-amd64.tar.gz