Skip to content

Commit

Permalink
Update README: set "sudo PATH" for Go
Browse files Browse the repository at this point in the history
sudo's PATH may be overridden by the security policy, so set the PATH for Go for installation.
  • Loading branch information
hmgle committed Aug 17, 2018
1 parent 63d6a32 commit 5a84aee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ After make finishes, you'll be able to use `graftcp-local` and `./graftcp`.
Optionally, you can also install them to system:

```sh
sudo make install
# sudo's PATH may be overridden by the security policy,
# so set the PATH for Go
sudo env "PATH=$PATH" make install
```

Then `graftcp-local` will run automatically as the operating system starts.
Expand Down
4 changes: 3 additions & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ make
make 执行完后,即可运行 `graftcp-local``./graftcp`。可以把它们都安装进系统:

```sh
sudo make install
# sudo's PATH may be overridden by the security policy,
# so set the PATH for Go
sudo env "PATH=$PATH" make install
```

之后 `graftcp-local` 会随着系统启动而自动运行。
Expand Down

0 comments on commit 5a84aee

Please sign in to comment.