Compare commits

..

2 commits

Author SHA1 Message Date
e6c312ab51 Add curl command example 2023-09-23 14:12:29 +02:00
b8047e39da Add machine id to ssh key name 2023-09-23 14:12:12 +02:00
2 changed files with 8 additions and 2 deletions

View file

@ -1 +1,7 @@
# Provisioner stage 1
# Provisioner stage 1
Run the script
```
bash <(curl -s https://git.faercol.me/faercol/provisioner-stage1/raw/branch/main/installer.sh)
```

View file

@ -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' \