diff options
author | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-06-13 12:07:59 -0400 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-06-13 12:07:59 -0400 |
commit | 455b0264180abd0fde9d4129696ec0e4753418d7 (patch) | |
tree | baedec9e4176f992658740bb9030298b266e9f8a /src | |
parent | a8372a5e6f55e6d830c6aba09a92673b49110a22 (diff) |
fix bug if user monkeysphere home directory didn't exist.
Diffstat (limited to 'src')
-rwxr-xr-x | src/monkeysphere | 5 |
1 files changed, 5 insertions, 0 deletions
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' |