3
0
Fork 0
forked from mirrors/nixpkgs

nixos/tests/opensearch: replace activationScript via tmpfiles

This commit is contained in:
nikstur 2023-10-20 00:48:04 +02:00
parent 6c800013bf
commit 0b294fe2e8

View file

@ -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 = {