fix bug if user monkeysphere home directory didn't exist.
authorJameson Graef Rollins <jrollins@phys.columbia.edu>
Fri, 13 Jun 2008 16:07:59 +0000 (12:07 -0400)
committerJameson Graef Rollins <jrollins@phys.columbia.edu>
Fri, 13 Jun 2008 16:07:59 +0000 (12:07 -0400)
src/monkeysphere

index 5d865c96a3a7a747aa7054213500149baaec3ca4..6e71765d8e65ebb8d97a5e83fc2cb3beed396239 100755 (executable)
@@ -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'