forked from mirrors/nixpkgs
elasticsearch: run preStart as root, to allow creating the necessary directories.
This commit is contained in:
parent
1ecb9b8de8
commit
40566790d3
|
@ -106,6 +106,7 @@ in {
|
|||
serviceConfig = {
|
||||
ExecStart = "${pkgs.elasticsearch}/bin/elasticsearch -f -Des.path.conf=${configDir}";
|
||||
User = "elasticsearch";
|
||||
PermissionsStartOnly = true;
|
||||
};
|
||||
preStart = ''
|
||||
mkdir -m 0700 -p ${cfg.dataDir}
|
||||
|
|
Loading…
Reference in a new issue