bitcoind: remove unneeded tmpfile rule

This commit is contained in:
Erik Arvstedt 2022-02-03 20:46:27 +01:00
parent 98f419233f
commit 679e7b6544
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -367,7 +367,6 @@ in {
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"d '${cfg.dataDir}' 0770 ${cfg.user} ${cfg.group} - -" "d '${cfg.dataDir}' 0770 ${cfg.user} ${cfg.group} - -"
"d '${cfg.dataDir}/blocks' 0770 ${cfg.user} ${cfg.group} - -"
]; ];
systemd.services.bitcoind = { systemd.services.bitcoind = {
@ -387,7 +386,12 @@ in {
'' ''
) (builtins.attrNames cfg.rpc.users); ) (builtins.attrNames cfg.rpc.users);
in '' in ''
${optionalString cfg.dataDirReadableByGroup "chmod -R g+rX '${cfg.dataDir}/blocks'"} ${optionalString cfg.dataDirReadableByGroup ''
if [[ -e '${cfg.dataDir}/blocks' ]]; then
chmod -R g+rX '${cfg.dataDir}/blocks'
fi
''}
cfg=$( cfg=$(
cat ${configFile} cat ${configFile}
${extraRpcauth} ${extraRpcauth}