X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=conflink;h=03649f5cfd0815458bd30e5caffb13a9c89753dc;hb=b857462732e15f455e41f26e3048a390d7b399c0;hp=139096f507446c0b4fc4357b13e3b8087b651226;hpb=d46190aff6f5dc65bd39524e3937dc5765895b42;p=distro-setup diff --git a/conflink b/conflink index 139096f..03649f5 100755 --- a/conflink +++ b/conflink @@ -75,14 +75,29 @@ case $USER in ian|iank) # p needs to go first so .ssh link is created, then config link inside it m common-file-setup ${all_dirs[@]} + + #### begin special extra stuff #### + install -d -m700 ~/gpg-agent-socket if [[ -d /etc/bind/bind-writable ]]; then # need bind writable dir for nsupdate, or else we get # named[20823]: /etc/bind/db.iank.pw.jnl: create: permission denied m s chgrp bind /etc/bind/bind-writable fi + files=(/etc/bind/[Kk]*) + if [[ -e $files ]]; then + m s chgrp bind ${files[@]} + fi if [[ -e /etc/davpass ]] && getent group www-data &>/dev/null; then s chgrp www-data /etc/davpass fi + if [[ -e /var/lib/znc/configs/znc.conf ]] && getent group znc; then + s chown znc:znc /var/lib/znc/configs/znc.conf + fi + /a/exe/lnf -T /p/arbtt-capture.log ~/.arbtt/capture.log + ##### end special extra stuff ##### + + sudo bash -c 'cd /etc/openvpn; for f in client/*; do ln -sf $f .; done' + m sudo -H -u traci "$BASH_SOURCE" ;; traci)