diff options
Diffstat (limited to 'src/share/mh/import_key')
-rw-r--r-- | src/share/mh/import_key | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/share/mh/import_key b/src/share/mh/import_key index cab2cf5..e5982ca 100644 --- a/src/share/mh/import_key +++ b/src/share/mh/import_key @@ -24,8 +24,10 @@ hostName=${2:-$(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 verbose "importing ssh key..." # translate ssh key to a private key |