From 47481b26421f992064a459cc5a756feb3cdb005b Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Wed, 4 Mar 2020 18:08:54 +0100 Subject: [PATCH] electrs: quote dataDir in shell cmd --- modules/electrs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/electrs.nix b/modules/electrs.nix index 6766691..f8da9ef 100644 --- a/modules/electrs.nix +++ b/modules/electrs.nix @@ -73,7 +73,7 @@ in { chown -R '${cfg.user}:${cfg.group}' ${cfg.dataDir} echo "${pkgs.nix-bitcoin.electrs}/bin/electrs -vvv" \ ${optionalString (!cfg.high-memory) "--jsonrpc-import --index-batch-size=10"} \ - "--db-dir ${cfg.dataDir} --daemon-dir '${config.services.bitcoind.dataDir}'" \ + "--db-dir '${cfg.dataDir}' --daemon-dir '${config.services.bitcoind.dataDir}'" \ "--cookie=${config.services.bitcoind.rpcuser}:$(cat ${secretsDir}/bitcoin-rpcpassword)" \ "--electrum-rpc-addr=127.0.0.1:${toString cfg.port}" > /run/electrs/startscript.sh '';