nixos/doc: Split mkdir mode into chmod command for clarity

As recommended by ShellCheck
<https://github.com/koalaman/shellcheck/wiki/SC2174>.
This commit is contained in:
Victor Engmark 2023-06-09 09:24:25 +12:00
parent d723c91e11
commit b4e403f9e0

View File

@ -141,7 +141,8 @@ in {
path = [ pkgs.su ]; path = [ pkgs.su ];
script = script =
'' ''
mkdir -m 0755 -p $(dirname ${toString cfg.output}) mkdir -p $(dirname ${toString cfg.output})
chmod 0755 $(dirname ${toString cfg.output})
exec updatedb \ exec updatedb \
--localuser=${cfg.localuser} \ --localuser=${cfg.localuser} \
${optionalString (!cfg.includeStore) "--prunepaths='/nix/store'"} \ ${optionalString (!cfg.includeStore) "--prunepaths='/nix/store'"} \