Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust default config location on FreeBSD #2383

Open
skillcoder opened this issue Aug 4, 2024 · 3 comments
Open

Adjust default config location on FreeBSD #2383

skillcoder opened this issue Aug 4, 2024 · 3 comments
Labels

Comments

@skillcoder
Copy link
Contributor

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
Copy link
Contributor Author

I will prepare a PR

@mlsmaycon
Copy link
Collaborator

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

@skillcoder
Copy link
Contributor Author

Need to test after we release new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants