Commit 72e1a1b2 authored by Ian Wienand's avatar Ian Wienand
Browse files

Update account.json on account update

When running --updateaccount, the ca/<ca>/account.json file isn't
updated with the new response showing the updated account details.
This can be a bit confusing if you add an email to the account but
then you're not sure if it actually applied looking at this file.

Write out the new response on successful account updates.
parent 12ad8d52
...@@ -3518,6 +3518,7 @@ updateaccount() { ...@@ -3518,6 +3518,7 @@ updateaccount() {
_send_signed_request "$_accUri" "$updjson" _send_signed_request "$_accUri" "$updjson"
if [ "$code" = '200' ]; then if [ "$code" = '200' ]; then
echo "$response" >"$ACCOUNT_JSON_PATH"
_info "account update success for $_accUri." _info "account update success for $_accUri."
else else
_info "Error. The account was not updated." _info "Error. The account was not updated."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment