summaryrefslogtreecommitdiff
path: root/src/share/mh/import_key
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-02-20 14:26:15 -0500
committerJameson Graef Rollins <jrollins@finestructure.net>2009-02-20 14:26:15 -0500
commitcd4c36070c85283086ed914d8fd6ac77884173bb (patch)
treeec17e07cc35e400ed4a372f2d59e47310418cfcb /src/share/mh/import_key
parent228dba26343aa8fdad67157a85549f102877083b (diff)
tweak/cleanup some of the prompts.
Diffstat (limited to 'src/share/mh/import_key')
-rw-r--r--src/share/mh/import_key15
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}"