Correct the removal of existing files

Don't remove anymore the debian installer directory ! Some others
scripts might write some data (eg. make_debian_initrd_with_firmware.sh)
Remove the sample menu.cfg.
This commit is contained in:
Jeremy Gardais 2018-02-15 16:53:48 +01:00
parent e73c89c4cd
commit 8b38c181d3
1 changed files with 1 additions and 1 deletions

View File

@ -18,8 +18,8 @@ DEBIAN_INSTALLER_DIR="${TFTP_DIRECTORY}/installer/debian"
DEBIAN_CONFIG_PXE="${DEBIAN_INSTALLER_DIR}/menu.cfg.example" DEBIAN_CONFIG_PXE="${DEBIAN_INSTALLER_DIR}/menu.cfg.example"
# Create directories and config file # Create directories and config file
rm -rf "${DEBIAN_INSTALLER_DIR}"
mkdir -p "${DEBIAN_INSTALLER_DIR}" mkdir -p "${DEBIAN_INSTALLER_DIR}"
rm -f "${DEBIAN_CONFIG_PXE}"
touch "${DEBIAN_CONFIG_PXE}" touch "${DEBIAN_CONFIG_PXE}"
for DISTRO in stretch buster jessie wheezy sid; do # For ALL Debian's version for DISTRO in stretch buster jessie wheezy sid; do # For ALL Debian's version