-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
config: allow changing the default root directory #2106
Comments
@guggero Thanks again for your support on the I quickly ran two more tests with
Thanks! |
It looks like there is indeed no global option in |
Thank you very much! |
Hello, I would like to jump on this. |
Hello @guggero, For my approach , I want to add a flag for global home directory that installs everything in the specified path. I'll do a check whether the global flag exists and if true it will replace the path of the default home directory. |
See https://github.com/btcsuite/btcd/blob/master/config.go#L99, those are all flags. |
@guggero Thanks for pointing me in the right direction. |
Background
For some reason, I am not able to define alternative directories via CLI arguments.
Arguments that work:
Argument that does not work:
Your environment
version of
btcd
which operating system (
uname -a
on *Nix)any other relevant environment details
Containerfile
Entrypoint/cmd
Steps to reproduce
Expected behaviour
btcd
to write its output to the respective directories.Actual behaviour
btcd
immediately exits and complains about the home directory being read-only. Even when overwriting the default--datadir=
location, it still points to the home directory/home/btcd/.btcd/db
:The text was updated successfully, but these errors were encountered: