bitcoind: remove unneeded tmpfile rule
This commit is contained in:
parent
98f419233f
commit
679e7b6544
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user