X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fsubcommands%2Fmh%2Fadd-hostname;h=591f52ee4a90d987e2a590df134c0cfb22bd4b45;hb=c7abef25b0cb36c04d12619659b7f0ad1b410c9a;hp=fc1ae9665ec76745ffed24900e72bea31e8e12fb;hpb=f5916bc01d76a54d9c2b1738c15da588021c63f3;p=monkeysphere.git diff --git a/src/subcommands/mh/add-hostname b/src/subcommands/mh/add-hostname index fc1ae96..591f52e 100755 --- a/src/subcommands/mh/add-hostname +++ b/src/subcommands/mh/add-hostname @@ -12,6 +12,8 @@ # add hostname user ID to server key +add_hostname() { + local userID local fingerprint local tmpuidMatch @@ -58,10 +60,7 @@ EOF if echo "$adduidCommand" | \ gpg_host --quiet --command-fd 0 --edit-key "0x${fingerprint}!" ; then - # update the trustdb for the authentication keyring - gpg_authentication "--check-trustdb" - - show_server_key + show_key echo echo "NOTE: User ID added to key, but key not published." @@ -69,3 +68,5 @@ if echo "$adduidCommand" | \ else failure "Problem adding user ID." fi + +}