From 201fc3378297e1451f9d344f574abb570a137841 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Tue, 7 Apr 2020 23:05:07 +0200 Subject: [PATCH] move line to relevant code section (blocks dir setup) --- modules/bitcoind.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/bitcoind.nix b/modules/bitcoind.nix index 08258a8..db381ff 100644 --- a/modules/bitcoind.nix +++ b/modules/bitcoind.nix @@ -253,11 +253,12 @@ in { if ! test -e ${cfg.dataDir}/blocks; then mkdir -m 0770 -p '${cfg.dataDir}/blocks' fi + chmod -R g+rX '${cfg.dataDir}/blocks' + cp '${configFile}' '${cfg.dataDir}/bitcoin.conf' chmod o-rw '${cfg.dataDir}/bitcoin.conf' chown -R '${cfg.user}:${cfg.group}' '${cfg.dataDir}' echo "rpcpassword=$(cat ${config.nix-bitcoin.secretsDir}/bitcoin-rpcpassword)" >> '${cfg.dataDir}/bitcoin.conf' - chmod -R g+rX '${cfg.dataDir}/blocks' ''; # Wait until RPC port is open. This usually takes just a few ms. postStart = ''