Updates to mirror new repository structure.
[james-home-etc.git] / fixups
blob937273a055ff78b8e6c17ec335ff4344126b57c3
1 #!/bin/sh
2 # [[file:readme.org::*fixups][fixups:2]]
3 # Can't just assume home in the current directory.
4 cd
6 # [[file:~/.etc/readme.org::*fixups][hostspecific]]
7 hostspecific ()
9 if [ ! -e "${1}" ]; then
10 if [ -e "${1}.$(hostname)" ]; then
11 ln -sf "$(basename ${1}).$(hostname)" "${1}"
12 elif [ -e "${1}.general" ]; then
13 ln -sf "$(basename ${1}).general" "${1}"
17 # hostspecific ends here
19 if ! [ -d .ssh ]; then
20 mkdir .ssh
22 chmod 755 .ssh
24 hostspecific .ssh/authorized_keys
26 if [ -e .ssh/authorized_keys ]; then
27 chmod 600 .ssh/authorized_keys
30 hostspecific .etc/.offlineimaprc
32 # need to have proper email
33 hostspecific .etc/.gitconfig
35 hostspecific .etc/.forward
36 # fixups:2 ends here