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
parent f4c159d0e2
commit 58c7e5519b
No known key found for this signature in database
GPG Key ID: 4861DBF262123605

View File

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