1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

Correct the installation path

### Description
This PR correct the installation path before moving the executed file from the unzipped folder

### How to reproduce
```text
> curl -L https://github.com/nats-io/nats-server/releases/download/v2.0.0/nats-server-v2.0.0-linux-amd64.zip -o nats-server.zip

> unzip nats-server.zip -d nats-server
Archive:  nats-server.zip
   creating: nats-server-v2.0.0-linux-amd64/
  inflating: nats-server-v2.0.0-linux-amd64/README.md
  inflating: nats-server-v2.0.0-linux-amd64/LICENSE
  inflating: nats-server-v2.0.0-linux-amd64/nats-server

> sudo cp nats-server/nats-server-v2.0.0-linux-amd64/nats-server /usr/bin
```
The above `sudo cp nats-server-v2.0.0-linux-amd64/nats-server /usr/bin` doesn't work because the source should be ` nats-server/nats-server-v2.0.0-linux-amd64/nats-server`
This commit is contained in:
Olivier M. Esuka 2020-11-04 21:18:31 +02:00 committed by GitHub
parent dc1130e583
commit a7fc21ca1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ Archive: nats-server.zip
inflating: nats-server-v2.0.0-linux-amd64/LICENSE
inflating: nats-server-v2.0.0-linux-amd64/nats-server
> sudo cp nats-server-v2.0.0-linux-amd64/nats-server /usr/bin
> sudo cp nats-server/nats-server-v2.0.0-linux-amd64/nats-server /usr/bin
```
## Installing From the Source