locate: does not use localuser for mlocate

This commit is contained in:
romildo 2017-05-28 15:22:46 -03:00
parent c06a10e05f
commit 6ef6484dd6

View File

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