From 205829b91fad2cc233f2dd60999576f16437d762 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Wed, 26 Aug 2020 21:15:31 +0200 Subject: [PATCH] bitcoind: remove whitespace --- modules/bitcoind.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/bitcoind.nix b/modules/bitcoind.nix index 440b6ed..8497da3 100644 --- a/modules/bitcoind.nix +++ b/modules/bitcoind.nix @@ -299,7 +299,7 @@ in { after = [ "network.target" "nix-bitcoin-secrets.target" ]; wantedBy = [ "multi-user.target" ]; preStart = '' - ${optionalString cfg.dataDirReadableByGroup "chmod -R g+rX '${cfg.dataDir}/blocks'"} + ${optionalString cfg.dataDirReadableByGroup "chmod -R g+rX '${cfg.dataDir}/blocks'"} cfgpre=$(cat ${configFile}; printf "rpcpassword="; cat "${secretsDir}/bitcoin-rpcpassword-privileged") cfg=$(echo "$cfgpre" | \ @@ -307,7 +307,7 @@ in { sed "s/bitcoin-HMAC-public/$(cat ${secretsDir}/bitcoin-HMAC-public)/g") confFile='${cfg.dataDir}/bitcoin.conf' if [[ ! -e $confFile || $cfg != $(cat $confFile) ]]; then - install -o '${cfg.user}' -g '${cfg.group}' -m 640 <(echo "$cfg") $confFile + install -o '${cfg.user}' -g '${cfg.group}' -m 640 <(echo "$cfg") $confFile fi ''; postStart = ''