Fernando K pushed to branch main at Root / Serviços / Setup Hosts

Commits:

1 changed file:

Changes:

  • get-key-from-bao.sh
    ... ... @@ -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