Skip to content

Commit

Permalink
Merge pull request #121667 from Mic92/buildkite
Browse files Browse the repository at this point in the history
nixos/buildkite-agents: fix race-condition when installing secrets
  • Loading branch information
Mic92 authored Jun 1, 2021
2 parents 4a41a22 + 503b937 commit 846f44e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ in
in
optionalString (cfg.privateSshKeyPath != null) ''
mkdir -m 0700 -p "${sshDir}"
cp -f "${toString cfg.privateSshKeyPath}" "${sshDir}/id_rsa"
chmod 600 "${sshDir}"/id_rsa
install -m600 "${toString cfg.privateSshKeyPath}" "${sshDir}/id_rsa"
'' + ''
cat > "${cfg.dataDir}/buildkite-agent.cfg" <<EOF
token="$(cat ${toString cfg.tokenPath})"
Expand Down

0 comments on commit 846f44e

Please sign in to comment.