From 9aa72fe6700140772c7de9360bf6bcac7b801511 Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Sun, 28 Feb 2021 22:13:38 -0800 Subject: [PATCH] small but important fix to instructions Without quotes around the here-document word, the expansion happens as the command is run, which isn't what I had in mind. --- guide/install.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/guide/install.md b/guide/install.md index fe644af..cc8c48a 100644 --- a/guide/install.md +++ b/guide/install.md @@ -46,14 +46,13 @@ As you set up this script, adjust the `tz` variable as appropriate for your time zone. ``` -sudo sh -c 'cat > /usr/local/bin/nvr' < /usr/local/bin/nvr' <<'EOF' #!/bin/bash -e tz=America/Los_Angeles container_name=moonfire-nvr image_name=scottlamb/moonfire-nvr:latest common_docker_run_args=( - --mount=type=bind,source=/etc/localtime,destination=/etc/localtime --mount=type=bind,source=/var/lib/moonfire-nvr,destination=/var/lib/moonfire-nvr --user="$(id -u moonfire-nvr):$(id -g moonfire-nvr)" --env=RUST_BACKTRACE=1