Add machine id to ssh key name
This commit is contained in:
parent
ff00da29c1
commit
b8047e39da
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ configure_git_access() {
|
|||
fi
|
||||
|
||||
key_val="$(cat "$HOME"/.ssh/"${used_key}".pub)"
|
||||
key_name="$USER-$(cat /etc/hostname)"
|
||||
key_name="$USER-$(cat /etc/hostname)-$(cat /etc/machine-id)"
|
||||
key_body="{\"key\":\"$key_val\",\"read_only\":false,\"title\":\"$key_name\"}"
|
||||
display_step "Posting public key to gitea API"
|
||||
curl -f -S -o /dev/null -X 'POST' \
|
||||
|
|
Loading…
Reference in a new issue