Skip to content

Commit

Permalink
docs: simplify Linux sudo instructions in README (getsentry#1096)
Browse files Browse the repository at this point in the history
Describe an easier way to pass the `SENTRY_IMAGE` environment variable to `install.sh` when using `sudo` that doesn't require modifying the `sudo` configuration
  • Loading branch information
jnm authored Sep 28, 2021
1 parent 58874cf commit f2e2dc2
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,10 @@ Note that this may not work for all commit SHAs as this repository evolves with

### Using Linux

If you are using Linux and you need to use `sudo` when running `./install.sh`, modifying the version of Sentry is slightly different. First, run the following:
If you are using Linux and you need to use `sudo` when running `./install.sh`, make sure to place the environment variable *after* `sudo`:

```shell
sudo visudo
```

Then add the following line:

```shell
Defaults env_keep += "SENTRY_IMAGE"
```

Save the file then in your terminal run the following

```shell
export SENTRY_IMAGE=us.gcr.io/sentryio/sentry:83b1380
sudo ./install.sh
sudo SENTRY_IMAGE=us.gcr.io/sentryio/sentry:83b1380 ./install.sh
```

Where you replace `83b1380` with the sha you want to use.
Expand Down

0 comments on commit f2e2dc2

Please sign in to comment.