Skip to content

Commit 3f1bf64

Browse files
authored
Change working directory in line home-assistant guidelines (#145)
* Update config.yaml keep home-assistant config directory clean and use respective addons directory * Update run change config.json location according to directory change * Update DOCS.md change description in respect of the the change of config location * Update run path correction * Update config.yaml testing * Update run path correction * Update run aligning config directory * Update config.yaml reverting changes * Update run testing * Update run change directory * Update run change dir * Update run config dir change
1 parent 72259d0 commit 3f1bf64

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

netbird/DOCS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ comparison to installing any other Home Assistant add-on.
2626

2727
## Configuration
2828

29-
You'll see the config file at `/config/netbird/config.json` after first boot.
29+
You'll see the config file at `/addon_config/*_netbird/config.json` after first boot.
3030

3131
### Option: `log_level`
3232

@@ -153,4 +153,4 @@ SOFTWARE.
153153
[releases]: https://github.com/netbirdio/addon-netbird/releases
154154
[semver]: http://semver.org/spec/v2.0.0.html
155155
[netbird]: https://github.com/netbirdio/netbird
156-
[lfarkas]: https://github.com/lfarkas
156+
[lfarkas]: https://github.com/lfarkas

netbird/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ privileged:
2323
- NET_RAW
2424
- BPF
2525
map:
26-
- config:rw
26+
- addon_config:rw
2727
options:
2828
admin_url: ""
2929
management_url: ""

netbird/rootfs/etc/s6-overlay/s6-rc.d/netbird/run

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ declare -a options
88
declare name
99
declare value
1010

11+
1112
# Get the options configured in HASS GUI
12-
readonly CONFIG_PATH=/config/netbird/config.json
13+
readonly CONFIG_PATH=/config/config.json
1314

1415
admin_url="$(bashio::config 'admin_url')"
1516
management_url="$(bashio::config 'management_url')"

0 commit comments

Comments
 (0)