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
1 changed files with 6 additions and 2 deletions

View File

@ -367,7 +367,6 @@ in {
systemd.tmpfiles.rules = [
"d '${cfg.dataDir}' 0770 ${cfg.user} ${cfg.group} - -"
"d '${cfg.dataDir}/blocks' 0770 ${cfg.user} ${cfg.group} - -"
];
systemd.services.bitcoind = {
@ -387,7 +386,12 @@ in {
''
) (builtins.attrNames cfg.rpc.users);
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=$(
cat ${configFile}
${extraRpcauth}