diff options
author | romildo <malaquias@gmail.com> | 2017-05-28 15:22:46 -0300 |
---|---|---|
committer | romildo <malaquias@gmail.com> | 2017-05-28 15:22:46 -0300 |
commit | 6ef6484dd645a7d1d6b1d3d993988ba5833a5701 (patch) | |
tree | dc08cc0ce49eff6f24d6e528bfa63008b7b6f7a7 /nixos/modules | |
parent | c06a10e05fedcd49c4b2f88a435e9aad64395d0a (diff) |
locate: does not use localuser for mlocate
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/misc/locate.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/misc/locate.nix b/nixos/modules/misc/locate.nix index 654cce95ab233..0fe91435ce8cb 100644 --- a/nixos/modules/misc/locate.nix +++ b/nixos/modules/misc/locate.nix @@ -133,7 +133,7 @@ in { '' mkdir -m 0755 -p ${dirOf cfg.output} exec ${cfg.locate}/bin/updatedb \ - ${optionalString (cfg.localuser != null) ''--localuser=${cfg.localuser}''} \ + ${optionalString (cfg.localuser != null && ! isMLocate) ''--localuser=${cfg.localuser}''} \ --output=${toString cfg.output} ${concatStringsSep " " cfg.extraFlags} ''; environment = { |