X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fsubcommands%2Fmh%2Fpublish-key;h=6c69569fb601dba05a747125632069ca617e7def;hb=8001b4523c665ee7d9ded64cbdb7081b023b75c1;hp=792d858796795d1103327262368ab561e3e1e53b;hpb=f5916bc01d76a54d9c2b1738c15da588021c63f3;p=monkeysphere.git diff --git a/src/subcommands/mh/publish-key b/src/subcommands/mh/publish-key old mode 100755 new mode 100644 index 792d858..6c69569 --- a/src/subcommands/mh/publish-key +++ b/src/subcommands/mh/publish-key @@ -1,17 +1,20 @@ -#!/usr/bin/env bash +# -*-shell-script-*- +# This should be sourced by bash (though we welcome changes to make it POSIX sh compliant) # Monkeysphere host publish-key subcommand # # The monkeysphere scripts are written by: -# Jameson Rollins +# Jameson Rollins # Jamie McClelland # Daniel Kahn Gillmor # -# They are Copyright 2008, and are all released under the GPL, version 3 +# They are Copyright 2008-2009, and are all released under the GPL, version 3 # or later. # publish server key to keyserver +publish_key() { + read -p "Really publish host key to $KEYSERVER? (y/N) " OK; OK=${OK:=N} if [ ${OK/y/Y} != 'Y' ] ; then failure "key not published." @@ -22,3 +25,5 @@ fingerprint=$(fingerprint_server_key) # publish host key gpg_authentication "--keyserver $KEYSERVER --send-keys '0x${fingerprint}!'" + +}