summaryrefslogtreecommitdiff
path: root/src/share/mh/gen_key
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-02-16 01:08:28 -0500
committerJameson Graef Rollins <jrollins@finestructure.net>2009-02-16 01:08:56 -0500
commitb55981fb8aa689aede58ed7ab4d8692c52b5c472 (patch)
tree9f7ebb266dad6657b9c2ab455398258d33fbb8a6 /src/share/mh/gen_key
parent3a421784e75e8e720290b3cb3eef8a83746b0855 (diff)
make sure MHTMPDIR is defined and created
Diffstat (limited to 'src/share/mh/gen_key')
-rw-r--r--src/share/mh/gen_key6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/share/mh/gen_key b/src/share/mh/gen_key
index 3b9a269..96053bc 100644
--- a/src/share/mh/gen_key
+++ b/src/share/mh/gen_key
@@ -41,8 +41,10 @@ hostName=${1:-$(hostname -f)}
userID="ssh://${hostName}"
# create host home
-mkdir -p "$GNUPGHOME_HOST"
-chmod 700 "$GNUPGHOME_HOST"
+mkdir -p "${MHDATADIR}"
+mkdir -p "${MHTMPDIR}"
+mkdir -p "${GNUPGHOME_HOST}"
+chmod 700 "${GNUPGHOME_HOST}"
log debug "generating host key..."
gpg_host --batch --gen-key <<EOF