diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-20 14:26:15 -0500 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-20 14:26:15 -0500 |
commit | cd4c36070c85283086ed914d8fd6ac77884173bb (patch) | |
tree | ec17e07cc35e400ed4a372f2d59e47310418cfcb /src/share/mh/import_key | |
parent | 228dba26343aa8fdad67157a85549f102877083b (diff) |
tweak/cleanup some of the prompts.
Diffstat (limited to 'src/share/mh/import_key')
-rw-r--r-- | src/share/mh/import_key | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/share/mh/import_key b/src/share/mh/import_key index 040b41c..7c11890 100644 --- a/src/share/mh/import_key +++ b/src/share/mh/import_key @@ -44,6 +44,21 @@ fi userID="ssh://${hostName}" +if [ "$PROMPT" = "true" ] ; then + cat <<EOF +The ssh key will be imported and an OpenPGP certificate for this host +will be generated with the following user ID: + $userID +EOF + read -p "Are you sure you would like to create certificate? [Y/n] " OK; OK=${OK:-Y} + if [ "${OK/y/Y}" != 'Y' ] ; then + failure "revoker not added." + fi +else + log debug "importing key without prompting." +fi + + # create host home mkdir -p "${MHDATADIR}" mkdir -p "${GNUPGHOME_HOST}" |