From: Jameson Graef Rollins Date: Fri, 13 Jun 2008 16:07:59 +0000 (-0400) Subject: fix bug if user monkeysphere home directory didn't exist. X-Git-Tag: monkeysphere_0.1-1~38^2~1 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=455b0264180abd0fde9d4129696ec0e4753418d7;p=monkeysphere.git fix bug if user monkeysphere home directory didn't exist. --- diff --git a/src/monkeysphere b/src/monkeysphere index 5d865c9..6e71765 100755 --- a/src/monkeysphere +++ b/src/monkeysphere @@ -132,6 +132,11 @@ msAuthorizedKeys="$MS_HOME"/authorized_keys # make sure gpg home exists with proper permissions mkdir -p -m 0700 "$GNUPGHOME" +# make sure the user monkeysphere home directory exists +mkdir -p -m 0700 "$MS_HOME" +mkdir -p "$hostKeysCacheDir" +mkdir -p "$userKeysCacheDir" + case $COMMAND in 'update-known_hosts'|'update-known-hosts'|'k') MODE='known_hosts'