diff options
| author | Michael Hoang <enzime@users.noreply.github.com> | 2024-11-03 20:30:48 +1100 |
|---|---|---|
| committer | Michael Hoang <enzime@users.noreply.github.com> | 2024-11-07 17:31:22 +1100 |
| commit | 79608947e27163a2e74b1bec0812ce7a942cbdb8 (patch) | |
| tree | db0037d066e035f655a37cfeae348705d2f95cc5 /modules | |
| parent | 3b738c765de1bb4ecc4993fa092b27dd46d495ed (diff) | |
buildkit-agents: don't use `mkdir -p -m`
As `cfg.dataDir` will be the `home` of the Buildkite Agent user, it is
guaranted to exist so we don't need to use the `-p` flag.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/services/buildkite-agents.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/services/buildkite-agents.nix b/modules/services/buildkite-agents.nix index 4888247..69bc1f6 100644 --- a/modules/services/buildkite-agents.nix +++ b/modules/services/buildkite-agents.nix @@ -237,7 +237,7 @@ in tagStr = lib.concatStringsSep "," (lib.mapAttrsToList (name: value: "${name}=${value}") cfg.tags); in optionalString (cfg.privateSshKeyPath != null) '' - mkdir -m 0700 -p "${sshDir}" + mkdir -m 0700 "${sshDir}" install -m600 "${toString cfg.privateSshKeyPath}" "${sshDir}/id_rsa" '' + '' cat > "${cfg.dataDir}/buildkite-agent.cfg" <<EOF |
