Don't try to unlink lts file if link doesn't exists

This commit is contained in:
Jeremy Gardais 2018-02-15 16:52:51 +01:00
parent 96c4d3ceff
commit e73c89c4cd
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@ for DISTRO in artful ${LTS}; do
done done
# Link the LTS distribution name to lts # Link the LTS distribution name to lts
if [ -L "${TFTP_DIRECTORY}/installer/ubuntu/lts" ]; then
unlink ${TFTP_DIRECTORY}/installer/ubuntu/lts unlink ${TFTP_DIRECTORY}/installer/ubuntu/lts
fi
ln -s ${LTS} ${TFTP_DIRECTORY}/installer/ubuntu/lts ln -s ${LTS} ${TFTP_DIRECTORY}/installer/ubuntu/lts
exit 0 exit 0