Skip to content

Commit f2e2dc2

Browse files
authored
docs: simplify Linux sudo instructions in README (#1096)
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
1 parent 58874cf commit f2e2dc2

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

README.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,10 @@ Note that this may not work for all commit SHAs as this repository evolves with
3838

3939
### Using Linux
4040

41-
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:
41+
If you are using Linux and you need to use `sudo` when running `./install.sh`, make sure to place the environment variable *after* `sudo`:
4242

4343
```shell
44-
sudo visudo
45-
```
46-
47-
Then add the following line:
48-
49-
```shell
50-
Defaults env_keep += "SENTRY_IMAGE"
51-
```
52-
53-
Save the file then in your terminal run the following
54-
55-
```shell
56-
export SENTRY_IMAGE=us.gcr.io/sentryio/sentry:83b1380
57-
sudo ./install.sh
44+
sudo SENTRY_IMAGE=us.gcr.io/sentryio/sentry:83b1380 ./install.sh
5845
```
5946

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

0 commit comments

Comments
 (0)