From 351eef6e05e7c7f9394da4fcb22f118869aece47 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 9 Feb 2022 14:01:25 +0100 Subject: bin/debian-edu-faiinstall: Obviously 'test -d' is true for symlinks that point to a directory. In that case, we need to be more precise. --- bin/debian-edu-faiinstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/debian-edu-faiinstall b/bin/debian-edu-faiinstall index 4e748dc..2d7908b 100755 --- a/bin/debian-edu-faiinstall +++ b/bin/debian-edu-faiinstall @@ -90,7 +90,7 @@ fi # keep a copy of /srv/tftp/ltsp if this is the first attempt to deploy # debian-edu-fai on this system -if [ -d "${tftpdir}/debian-edu-fai" ]; then +if [ -d "${tftpdir}/debian-edu-fai" ] && [ ! -h "${tftpdir}/debian-edu-fai" ]; then mv "${tftpdir}/ltsp" "${tftpdir}/ltsp.moved-aside-by-debian-edu-fai" elif [ -h "${tftpdir}/debian-edu-fai" ]; then rm "${tftpdir}/debian-edu-fai" -- cgit v1.2.3