projects
/
monkeysphere.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update man page for subkey-to-ssh-agent, to add info about MONKEYSPHERE_SUBKEYS_FOR_AGENT
[monkeysphere.git]
/
src
/
share
/
mh
/
publish_key
diff --git
a/src/share/mh/publish_key
b/src/share/mh/publish_key
index 37b8a72628ad741bff5e50e380495b6aadb47be6..b0ffd93b96ae124f4717b85e2256e88c67d6187a 100644
(file)
--- a/
src/share/mh/publish_key
+++ b/
src/share/mh/publish_key
@@
-18,8
+18,8
@@
publish_key() {
local GNUPGHOME
if [ "$PROMPT" = "true" ] ; then
local GNUPGHOME
if [ "$PROMPT" = "true" ] ; then
- read -p "Really publish host key to $KEYSERVER? (
y/N) " OK; OK=${OK:=N
}
- if [
${OK/y/Y}
!= 'Y' ] ; then
+ read -p "Really publish host key to $KEYSERVER? (
Y/n) " OK; OK=${OK:=Y
}
+ if [
"${OK/y/Y}"
!= 'Y' ] ; then
failure "key not published."
fi
else
failure "key not published."
fi
else
@@
-28,6
+28,8
@@
fi
# create a temporary gnupg directory from which to publish the key
export GNUPGHOME=$(msmktempdir)
# create a temporary gnupg directory from which to publish the key
export GNUPGHOME=$(msmktempdir)
+chmod 0700 "$GNUPGHOME"
+chown "$MONKEYSPHERE_USER":"$MONKEYSPHERE_USER" "$GNUPGHOME"
# trap to remove tmp dir if break
trap "rm -rf $GNUPGHOME" EXIT
# trap to remove tmp dir if break
trap "rm -rf $GNUPGHOME" EXIT