diff options
author | Ian Lewis <ianmlewis@gmail.com> | 2019-04-12 23:19:26 -0400 |
---|---|---|
committer | Ian Lewis <ianlewis@google.com> | 2019-04-15 13:19:00 -0700 |
commit | 80036845c18e1e41e3610cf2ff4a25345f444070 (patch) | |
tree | 90ff906e54a49dd0125678e968389c618bbfb572 /content/docs/includes | |
parent | 0e00a7d2da990ef8bd846c19c9a286539ad819a3 (diff) |
Install gVisor using a subshell.
If the user copy-and-pastes the commands to install gVisor in one go,
the commands should stop early if there is an error. Particularly, if
the runsc sha does not match.
Diffstat (limited to 'content/docs/includes')
-rw-r--r-- | content/docs/includes/install_gvisor.md | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/content/docs/includes/install_gvisor.md b/content/docs/includes/install_gvisor.md index f4c7a7d8b..e8089a7d4 100644 --- a/content/docs/includes/install_gvisor.md +++ b/content/docs/includes/install_gvisor.md @@ -14,11 +14,14 @@ as user `nobody` to avoid unnecessary privileges. The `/usr/local/bin` directory a good place to put the `runsc` binary. ```bash -wget https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc -wget https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc.sha512 -sha512sum -c runsc.sha512 -chmod a+x runsc -sudo mv runsc /usr/local/bin +( + set -e + wget https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc + wget https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc.sha512 + sha512sum -c runsc.sha512 + chmod a+x runsc + sudo mv runsc /usr/local/bin +) ``` [latest-nightly]: https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc |