rtl: set DB_DIRECTORY_PATH

This prevents RTL from trying to create a database in the directory that
contains the RTL executable.
This commit is contained in:
Jonas Nick 2023-02-27 13:21:17 +00:00 committed by Greg Shuflin
parent 560efcb7f1
commit ce332177be
1 changed files with 1 additions and 0 deletions

View File

@ -191,6 +191,7 @@ in {
optional cfg.nodes.lnd.enable "lnd.service";
after = requires;
environment.RTL_CONFIG_PATH = cfg.dataDir;
environment.DB_DIRECTORY_PATH = cfg.dataDir;
serviceConfig = nbLib.defaultHardening // {
ExecStartPre = [
(nbLib.script "rtl-setup-config" ''