X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fsubcommands%2Fmh%2Fpublish-key;h=b7ab01d8a247b1e114d50b3fda15e591e2029e86;hb=478cc34eee374166aae51f8598aa392e1fbfdde6;hp=792d858796795d1103327262368ab561e3e1e53b;hpb=b7e17887ac20bc5916d830f5282b07f4c0360c2a;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..b7ab01d --- 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." @@ -21,4 +24,8 @@ fi fingerprint=$(fingerprint_server_key) # publish host key -gpg_authentication "--keyserver $KEYSERVER --send-keys '0x${fingerprint}!'" +# FIXME: need to define how to do this +#gpg_authentication "--keyserver $KEYSERVER --send-keys '0x${fingerprint}!'" +echo "not published!!!" + +}