mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-10-30 00:05:03 -04:00
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.
This commit is contained in:
parent
d7eea63829
commit
9aa72fe670
@ -46,14 +46,13 @@ As you set up this script, adjust the `tz` variable as appropriate for your
|
|||||||
time zone.
|
time zone.
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo sh -c 'cat > /usr/local/bin/nvr' <<EOF
|
sudo sh -c 'cat > /usr/local/bin/nvr' <<'EOF'
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
tz=America/Los_Angeles
|
tz=America/Los_Angeles
|
||||||
container_name=moonfire-nvr
|
container_name=moonfire-nvr
|
||||||
image_name=scottlamb/moonfire-nvr:latest
|
image_name=scottlamb/moonfire-nvr:latest
|
||||||
common_docker_run_args=(
|
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
|
--mount=type=bind,source=/var/lib/moonfire-nvr,destination=/var/lib/moonfire-nvr
|
||||||
--user="$(id -u moonfire-nvr):$(id -g moonfire-nvr)"
|
--user="$(id -u moonfire-nvr):$(id -g moonfire-nvr)"
|
||||||
--env=RUST_BACKTRACE=1
|
--env=RUST_BACKTRACE=1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user