Use /usr/local instead of /opt in self contained release example

This commit is contained in:
Anmol Sethi 2020-05-14 20:27:36 -04:00
parent 10b06cae10
commit d7234029e6
No known key found for this signature in database
GPG Key ID: 8CEF1878FF10ADEB
1 changed files with 3 additions and 2 deletions

View File

@ -79,8 +79,9 @@ Add the code-server `bin` directory to your `$PATH` to easily execute it without
Here is an example script for installing and using a self-contained code-server release on Linux: Here is an example script for installing and using a self-contained code-server release on Linux:
```bash ```bash
curl -sSL https://github.com/cdr/code-server/releases/download/3.3.0/code-server-3.3.0-linux-amd64.tar.gz | sudo tar -C /opt -xz curl -sSL https://github.com/cdr/code-server/releases/download/3.3.0/code-server-3.3.0-linux-amd64.tar.gz | sudo tar -C /usr/local -xz
PATH="$PATH:/opt/code-server-3.3.0-linux-amd64/bin" sudo mv /usr/local/code-server-3.3.0-linux-amd64 /usr/local/code-server
PATH="$PATH:/usr/local/code-server/bin"
code-server code-server
``` ```