Skip to content

Commit

Permalink
Added a note about default sudo configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
xvitaly committed Sep 17, 2024
1 parent 1261cd4 commit 2347f2e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/manpage/zswap-cli.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ Start the application with the `--env` command-line argument:
sudo @APP_NAME@ --env
```

Note that most distributions are configured by default not to pass user-defined ENV settings when using sudo. In such cases, you can use the special parameter `-E`:

```
sudo -E @APP_NAME@ --env
```

# CONFIGURATION FILES

@APP_NAME@ support of getting options from the configuration files.
Expand Down
6 changes: 6 additions & 0 deletions docs/environment-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ Start the application with the `--env` command-line argument:
```
sudo zswap-cli --env
```

Note that most distributions are configured by default not to pass user-defined ENV settings when using sudo. In such cases, you can use the special parameter `-E`:

```
sudo -E zswap-cli --env
```

0 comments on commit 2347f2e

Please sign in to comment.