Skip to content

Commit

Permalink
DOCS-3151: Add env variable options for preinstall script (#3715)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Dec 2, 2024
1 parent 5fd6dc3 commit 34d06f7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/how-tos/provision-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,18 @@ sudo ./preinstall.sh
```

Follow the instructions.
If you created a <FILE>viam-provisioning.json</FILE>, specify its location when prompted.
If you created a <FILE>viam-provisioning.json</FILE>, specify its location as an environment variable or when prompted.

You can set optional arguments by defining the following environment variables:

<!-- prettier-ignore -->
| Argument | Description |
| -------- | ----------- |
| `VIAM_JSON_PATH` | The path to the machine credentials <FILE>viam.json</FILE> file to be copied to the machine. The script will also prompt you for this file if not provided. |
| `PROVISIONING_PATH` | The path to the <FILE>viam-provisioning.json</FILE> file. The script will also prompt you for this file if not provided. |
| `VIAM_AGENT_PATH` | The path to a beta or local build of `viam-agent`. Used for testing. |

<br>

{{% expand "Using a Raspberry Pi?" %}}

Expand Down

0 comments on commit 34d06f7

Please sign in to comment.