Compare commits
2 commits
ff00da29c1
...
e6c312ab51
Author | SHA1 | Date | |
---|---|---|---|
e6c312ab51 | |||
b8047e39da |
2 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
```
|
|
@ -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