From 80036845c18e1e41e3610cf2ff4a25345f444070 Mon Sep 17 00:00:00 2001 From: Ian Lewis Date: Fri, 12 Apr 2019 23:19:26 -0400 Subject: 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. --- content/docs/includes/install_gvisor.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'content/docs') 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 -- cgit v1.2.3