a
This commit is contained in:
parent
e24276fd6b
commit
ed0c072afb
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ setup_ssh() {
|
|||
|
||||
metadata=$(curl -s http://metadata)
|
||||
|
||||
echo "$metadata" | jq -r '.["ssh-key-list"] | .[]' > ssh-key-list.txt
|
||||
echo "$metadata" | jq -r '.["ssh-keys"] | .[]' > ssh-key-list.txt
|
||||
while read ssh_key; do
|
||||
if ! grep -q "$ssh_key" $ssh_authorized_keys_path; then
|
||||
echo $ssh_key >> $ssh_authorized_keys_path
|
||||
|
|
Loading…
Add table
Reference in a new issue