From b8047e39da89c2b6ff926076d3926110a8057cf7 Mon Sep 17 00:00:00 2001 From: Melora Hugues Date: Sat, 23 Sep 2023 14:12:12 +0200 Subject: [PATCH] Add machine id to ssh key name --- installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer.sh b/installer.sh index e4556f9..4452e5d 100755 --- a/installer.sh +++ b/installer.sh @@ -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' \