]> git.donarmstrong.com Git - bin.git/commitdiff
automatically symlink authorized keys
authorDon Armstrong <don@donarmstrong.com>
Fri, 31 Aug 2012 20:22:57 +0000 (20:22 +0000)
committerDon Armstrong <don@donarmstrong.com>
Fri, 31 Aug 2012 20:22:57 +0000 (20:22 +0000)
new_home_directory

index 7b05658a18c118a29b3f6ba5eddecd2d9e2567f7..6a5a8593dcec906ae80d5d378c0c7ef1514a1bde 100755 (executable)
@@ -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;