X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=conflink;h=139096f507446c0b4fc4357b13e3b8087b651226;hb=d46190aff6f5dc65bd39524e3937dc5765895b42;hp=7a597e3d86db0c970805531509a99b98c527fb0b;hpb=a5ab31675fd4b19fb5dcd32987c3323f0686fed0;p=distro-setup diff --git a/conflink b/conflink index 7a597e3..139096f 100755 --- a/conflink +++ b/conflink @@ -49,9 +49,9 @@ common-file-setup() { local dir fs x bdir f dst for dir in "$@"; do fs=$dir/filesystem - if [[ -e $fs && $USER == ian ]]; then + if [[ -e $fs && $USER =~ ^iank?$ ]]; then # note, symlinks get resolved, not copied. - m s cp -RLT --preserve=mode,timestamps $fs / + s tar --mode=g-s --owner=0 --group=0 -cz -C $fs . | s tar -xz -C / fi if [[ -e $dir/subdir_files ]]; then @@ -72,7 +72,7 @@ done c_dirs=(/a/c{,/machine_specific/$HOSTNAME}) case $USER in - ian) + ian|iank) # p needs to go first so .ssh link is created, then config link inside it m common-file-setup ${all_dirs[@]} if [[ -d /etc/bind/bind-writable ]]; then