X-Git-Url: https://git.distorted.org.uk/~mdw/ca/blobdiff_plain/7d993891a3a9a83577d70e78493de7a51b830fad..9e49709b451cfccf98bb023341a9acaaf696936f:/bin/add diff --git a/bin/add b/bin/add index 6bd128b..d4eae0f 100755 --- a/bin/add +++ b/bin/add @@ -70,7 +70,7 @@ db transaction { ## Check whether the profile exists. if {![db exists { - SELECT 1 FROM profile WHERE label = $profile; + SELECT 1 FROM profile WHERE label = $profile AND tombstone = 0; }]} { error "unknown profile `$profile'" } @@ -109,3 +109,6 @@ db transaction { ## Issue a shiny new certificate. issue-cert $id [now] } + +## Publish any necessary changes. +update-hook