diff --git a/scripts/download_ubuntu.sh b/scripts/download_ubuntu.sh index 9c5d5fe..15173b7 100755 --- a/scripts/download_ubuntu.sh +++ b/scripts/download_ubuntu.sh @@ -27,7 +27,9 @@ for DISTRO in artful ${LTS}; do done # 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 exit 0