Remove the key from the keyring when removing an admin (#173)
Thanks for the submission!
This commit is contained in:
committed by
Tom Limoncelli
parent
fba77f092a
commit
1b7c8c880b
@@ -20,8 +20,15 @@ KEYNAME="$1"
|
|||||||
# Remove the email address from the BB_ADMINS file.
|
# Remove the email address from the BB_ADMINS file.
|
||||||
remove_line "$BB_ADMINS" "$KEYNAME"
|
remove_line "$BB_ADMINS" "$KEYNAME"
|
||||||
|
|
||||||
|
|
||||||
|
# remove the admin key from the pubring
|
||||||
|
$GPG --no-permission-warning --homedir="$KEYRINGDIR" --delete-key "$KEYNAME"
|
||||||
|
pubring_path=$(get_pubring_path)
|
||||||
|
vcs_add "$pubring_path" "$KEYRINGDIR/trustdb.gpg" "$BB_ADMINS"
|
||||||
|
|
||||||
|
|
||||||
# Make a suggestion:
|
# Make a suggestion:
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo 'NEXT STEP: Check these into the repo. Probably with a command like...'
|
echo 'NEXT STEP: Check these into the repo. Probably with a command like...'
|
||||||
echo $VCS_TYPE commit -m\'REMOVED ADMIN: $KEYNAME\' "$BLACKBOXDATA/$BB_ADMINS_FILE"
|
echo $VCS_TYPE commit -m\'REMOVED ADMIN: $KEYNAME\' "$BLACKBOXDATA/trustdb.gpg" "$BLACKBOXDATA/$BB_ADMINS_FILE"
|
||||||
|
|||||||
Reference in New Issue
Block a user