From 91f0ac7a2fe4459be719a6e87d32aecfdcdd3dcc Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Fri, 31 Aug 2012 20:22:57 +0000 Subject: [PATCH] automatically symlink authorized keys --- new_home_directory | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/new_home_directory b/new_home_directory index 7b05658..6a5a859 100755 --- a/new_home_directory +++ b/new_home_directory @@ -36,4 +36,8 @@ EOF if [ -e home_backup/.ssh ]; then cp -f home_backup/.ssh/* .ssh/; fi; -exec ~/bin/sa update; \ No newline at end of file +~/bin/sa update; +# if there isn't already a .ssh/authorized_keys, symlink authorized_keys_default to it +if [ ! -e .ssh/authorized_keys ]; then + (cd .ssh/; ln authorized_keys_default authorized_keys -s;) +fi; -- 2.39.5