remove unneeded code
[distro-setup] / conflink
index 948d1a22694b89aa08b4b984b20b7f494713bb4c..7954a223e06e3020939278ecb92786cb820b1538 100755 (executable)
--- a/conflink
+++ b/conflink
@@ -54,23 +54,6 @@ common-file-setup() {
             m s cp -RLT --preserve=mode,timestamps $fs /
         fi
 
-        # one program so far does not work with a symlink,
-        # so we have to use a bind mount
-        bdir=$dir/binds
-        if [[ -e $bdir && $USER == ian ]]; then
-            for f in $(find $bdir -type f); do
-                dst=/home/ian/${f##$bdir}
-                if [[ ! -e $dst || $(stat -c%i $f $dst |uniq -u) ]]; then
-                    if mountpoint -q $dst; then
-                        s umount $dst
-                    fi
-                    # note: in future, may need to mkdir also
-                    [[ -e $dst ]] || touch $dst
-                    s mount --bind $f $dst
-                fi
-            done
-        fi
-
         if [[ -e $dir/subdir_files ]]; then
             subdir-link-r $dir/subdir_files
         fi
@@ -92,6 +75,11 @@ case $USER in
     ian)
         # p needs to go first so .ssh link is created, then config link inside it
         common-file-setup ${all_dirs[@]}
+        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
+            s chgrp bind /etc/bind/bind-writable
+        fi
         sudo -u traci "$BASH_SOURCE"
         ;;
     traci)