diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-18 20:56:14 -0500 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-18 20:56:14 -0500 |
commit | 62374dd1c16a2719202955ad3fe878be5cc14dba (patch) | |
tree | b2d4480ad337ee204719b180613c58e21c7ca392 /src/monkeysphere-host | |
parent | 88b19565bced6d9ec9b035d1f9fe51ce6567923b (diff) |
new msmktempdir function, to simplify making temporary directories. remove MHTMPDIR, since it's not needed.
Diffstat (limited to 'src/monkeysphere-host')
-rwxr-xr-x | src/monkeysphere-host | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/monkeysphere-host b/src/monkeysphere-host index 7e8dd27..a86a8c9 100755 --- a/src/monkeysphere-host +++ b/src/monkeysphere-host @@ -32,10 +32,6 @@ MHSHAREDIR="${SYSSHAREDIR}/mh" # datadir for host functions MHDATADIR="${SYSDATADIR}/host" -# temp directory for temp gnupghome directories for add_revoker -MHTMPDIR="${MHDATADIR}/tmp" -export MHTMPDIR - # host pub key files HOST_KEY_FILE="${SYSDATADIR}/ssh_host_rsa_key.pub.gpg" @@ -171,7 +167,7 @@ show_key() { local GNUPGHOME # tmp gpghome dir - export GNUPGHOME=$(mktemp -d) + export GNUPGHOME=$(msmktempdir) # trap to remove tmp dir if break trap "rm -rf $GNUPGHOME" EXIT |