Fernando K pushed to branch main at Root / Serviços / Setup Hosts
Commits:
-
c1441820
by Fernando Monteiro Kiotheka at 2025-08-06T15:42:27-03:00
1 changed file:
Changes:
... | ... | @@ -7,5 +7,5 @@ private_key=$(printf "%s" "$response" | jq --raw-output .data.private_key) |
7 | 7 | signed_key=$(printf "%s" "$response" | jq --raw-output .data.signed_key)
|
8 | 8 | [ "$signed_key" != "null" ] && [ "$private_key" != "null" ] \
|
9 | 9 | || { echo "Failed to retrieve SSH key: SSH key is empty"; exit 1; }
|
10 | -printf "%s" "$private_key" >key && chmod 600 key
|
|
11 | -printf "%s" "$signed_key" >key-cert.pub && chmod 644 key-cert.pub |
|
10 | +printf "%s\n" "$private_key" >key && chmod 600 key
|
|
11 | +printf "%s\n" "$signed_key" >key-cert.pub && chmod 644 key-cert.pub |