X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai-redep;h=05414973ff69f9607fb7fec8f75897540cc5c2e4;hp=ac73c7b16e539a67cbddcbdc5f634cbab05c7770;hb=78a1427fc167ccee73d448054a9c40c19d737ed3;hpb=19fcc3931853969ed5aa97897795557d324cae39 diff --git a/fai-redep b/fai-redep index ac73c7b..0541497 100755 --- a/fai-redep +++ b/fai-redep @@ -59,7 +59,7 @@ sudo rsync -a /root/.ssh/home.pub \ # these files are not available. if [[ $target ]]; then - if [[ -e /q/root/shadow/$target ]]; then + if sudo test -e /q/root/shadow/$target; then shadowfile=shadow/$target # empty otherwise fi sudo rsync -lpt --files-from=- /q/root root@$faiserver_host:/srv/fai/config/distro-install-common </dev/null ||: # broken pipe -rsync -rplt --delete $BASEFILE_DIR/*.gz root@$faiserver_host:/srv/fai/config/basefiles/ +rsync -rplt --include '/*.gz' --exclude '/**' --delete-excluded $BASEFILE_DIR/ root@$faiserver_host:/srv/fai/config/basefiles/ ssh root@$faiserver_host bash <<'EOF' set -eE -o pipefail # make it the root because pxe-kexec only looks there.