nixos/rabbitmq: prefer 'install' over 'mkdir/chmod/chown'

This commit is contained in:
Felix Buehler 2024-01-26 22:56:28 +01:00
parent 1aa4e31045
commit 4c9b5cb310

View file

@ -210,8 +210,7 @@ in
preStart = '' preStart = ''
${optionalString (cfg.cookie != "") '' ${optionalString (cfg.cookie != "") ''
echo -n ${cfg.cookie} > ${cfg.dataDir}/.erlang.cookie install -m 600 <(echo -n ${cfg.cookie}) ${cfg.dataDir}/.erlang.cookie
chmod 600 ${cfg.dataDir}/.erlang.cookie
''} ''}
''; '';
}; };