Don't try to unlink lts file if link doesn't exists
This commit is contained in:
parent
96c4d3ceff
commit
e73c89c4cd
|
@ -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
|
||||||
unlink ${TFTP_DIRECTORY}/installer/ubuntu/lts
|
if [ -L "${TFTP_DIRECTORY}/installer/ubuntu/lts" ]; then
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue