btcpayserver: add missing systemd postgresql dependency

btcpayserver fails if it starts before postgresql.
This commit is contained in:
Erik Arvstedt 2021-02-01 22:53:00 +01:00
parent 9cd52e04b5
commit d1c0ea9f85
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -168,7 +168,7 @@ in {
"certthumbprint=";
in let self = {
wantedBy = [ "multi-user.target" ];
requires = [ "nbxplorer.service" ]
requires = [ "nbxplorer.service" "postgresql.service" ]
++ optional (cfg.btcpayserver.lightningBackend != null) "${cfg.btcpayserver.lightningBackend}.service";
after = self.requires;
preStart = ''