elasticsearch: run preStart as root, to allow creating the necessary directories.
This commit is contained in:
parent
1ecb9b8de8
commit
40566790d3
1 changed files with 1 additions and 0 deletions
|
@ -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