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:
parent
e73c89c4cd
commit
8b38c181d3
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue