nixos/rabbitmq: prefer 'install' over 'mkdir/chmod/chown'
This commit is contained in:
parent
1aa4e31045
commit
4c9b5cb310
1 changed files with 1 additions and 2 deletions
|
@ -210,8 +210,7 @@ in
|
|||
|
||||
preStart = ''
|
||||
${optionalString (cfg.cookie != "") ''
|
||||
echo -n ${cfg.cookie} > ${cfg.dataDir}/.erlang.cookie
|
||||
chmod 600 ${cfg.dataDir}/.erlang.cookie
|
||||
install -m 600 <(echo -n ${cfg.cookie}) ${cfg.dataDir}/.erlang.cookie
|
||||
''}
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue