netbird icon indicating copy to clipboard operation
netbird copied to clipboard

Adjust default config location on FreeBSD

Open skillcoder opened this issue 1 year ago • 3 comments

Problem description Current default linux config location (/etc/netbird/config.json) inappropriate for FreeBSD On FreeBSD according to HIER(7) /etc/ using only for base system configuration files and scripts; see intro(5) The standard /usr/local/etc/netbird/config.json is also not the best choice since this is an automatically generated config that we should never need to modify by hand, all changes to it making by up command. Therefore, I propose placing config into /var/db/netbird/, which is the standard location for system service state on FreeBSD.

To Reproduce Just run current 0.28.7 client on FreeBSD without specifying --config/-c argument.

Expected behavior Netbird state should store by default in the standard system service state location inside /var/db/netbird/

Are you using NetBird Cloud?

Yes

NetBird version

0.28.7

NetBird status -d output:

Related `netbird status -d' command output:

...
OS: freebsd/amd64
Daemon version: 0.28.7
CLI version: 0.28.7
...

Additional context

This is required to simplify usage netbird cli command on FreeBSD

skillcoder avatar Aug 04 '24 10:08 skillcoder

I will prepare a PR

skillcoder avatar Aug 04 '24 10:08 skillcoder

Thanks @skillcoder for the issue and for working on the PR.

mlsmaycon avatar Aug 04 '24 14:08 mlsmaycon

Need to test after we release new version.

skillcoder avatar Aug 04 '24 20:08 skillcoder

@skillcoder I believe it is covered by your merged PR. Can we close this issue independently of NetBird getting accepted into FreeBSD packages?

nazarewk avatar Apr 23 '25 19:04 nazarewk