Skip to content

Commit

Permalink
Always refresh SSH keys
Browse files Browse the repository at this point in the history
Appending to SSH keys will cause it to grow indefinitely.

Change-type: patch
  • Loading branch information
klutchell authored Jun 13, 2024
1 parent 5a8a888 commit a5b4563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yocto-build-env/s6-overlay/scripts/addusers
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fetch_ssh_keys() {
(
cd "${_home}" || exit 1
mkdir -p .ssh
curl -fsSL "https://github.com/${_username}.keys" >>.ssh/authorized_keys
curl -fsSL "https://github.com/${_username}.keys" >.ssh/authorized_keys
chown -R "${_username}:${_username}" .ssh
chmod -R 700 .ssh
echo "Added $(wc -l <.ssh/authorized_keys) SSH keys for ${_username}"
Expand Down

0 comments on commit a5b4563

Please sign in to comment.