From: Don Armstrong Date: Fri, 31 Aug 2012 20:22:57 +0000 (+0000) Subject: automatically symlink authorized keys X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=91f0ac7a2fe4459be719a6e87d32aecfdcdd3dcc;p=bin.git automatically symlink authorized keys --- 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;