diff options
author | romildo <malaquias@gmail.com> | 2017-05-28 15:21:57 -0300 |
---|---|---|
committer | romildo <malaquias@gmail.com> | 2017-05-28 15:21:57 -0300 |
commit | c06a10e05fedcd49c4b2f88a435e9aad64395d0a (patch) | |
tree | 074a4fe0919ef3bb6456ab5add5cc6b0b2ecd8c0 /nixos/modules/misc/locate.nix | |
parent | 90b08c29d2e480c32f03337bc5f0952e83a60eed (diff) |
locate: fix creation of the parent directory of of locate database
Diffstat (limited to 'nixos/modules/misc/locate.nix')
-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 6d9bc915ba030..654cce95ab233 100644 --- a/nixos/modules/misc/locate.nix +++ b/nixos/modules/misc/locate.nix @@ -131,7 +131,7 @@ in { path = mkIf (!isMLocate) [ pkgs.su ]; script = '' - install -m ${if isMLocate then "0750" else "0755"} -o root -g ${if isMLocate then "mlocate" else "root"} -d $(dirname ${cfg.output}) + mkdir -m 0755 -p ${dirOf cfg.output} exec ${cfg.locate}/bin/updatedb \ ${optionalString (cfg.localuser != null) ''--localuser=${cfg.localuser}''} \ --output=${toString cfg.output} ${concatStringsSep " " cfg.extraFlags} |