pxe install: establish force true on conditional

This commit is contained in:
pedro 2024-10-16 22:52:22 +02:00
parent bb4a267ab5
commit 1ef84b60e9
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ END
install_netboot() { install_netboot() {
# if you want to refresh install, remove or move dir # if you want to refresh install, remove or move dir
if [ ! -d "${tftp_path}" ] || [ "${FORCE:-}" ]; then if [ ! -d "${tftp_path}" ] || [ "${FORCE:-}" = 'true' ]; then
${SUDO} mkdir -p "${tftp_path}/pxelinux.cfg" ${SUDO} mkdir -p "${tftp_path}/pxelinux.cfg"
if [ ! -f "${tftp_path}/netboot.tar.gz" ]; then if [ ! -f "${tftp_path}/netboot.tar.gz" ]; then
url="http://ftp.debian.org/debian/dists/${VERSION_CODENAME}/main/installer-amd64/current/images/netboot/netboot.tar.gz" url="http://ftp.debian.org/debian/dists/${VERSION_CODENAME}/main/installer-amd64/current/images/netboot/netboot.tar.gz"