forked from mirrors/nixpkgs
nixos/tests/opensearch: replace activationScript via tmpfiles
This commit is contained in:
parent
6c800013bf
commit
0b294fe2e8
|
@ -31,14 +31,9 @@ in
|
|||
services.opensearch.dataDir = "/var/opensearch_test";
|
||||
services.opensearch.user = "open_search";
|
||||
services.opensearch.group = "open_search";
|
||||
system.activationScripts.createDirectory = {
|
||||
text = ''
|
||||
mkdir -p "/var/opensearch_test"
|
||||
chown open_search:open_search /var/opensearch_test
|
||||
chmod 0700 /var/opensearch_test
|
||||
'';
|
||||
deps = [ "users" "groups" ];
|
||||
};
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/opensearch_test 0700 open_search open_search -"
|
||||
];
|
||||
users = {
|
||||
groups.open_search = {};
|
||||
users.open_search = {
|
||||
|
|
Loading…
Reference in a new issue