mkdir -p "$(dirname ${PLACE})" || unwind_abort
rm -rf "${PLACE}" >/dev/null 2>/dev/null
[ ! -e "${PLACE}" ] || unwind_abort
- mkdir -p "${PLACE}" || unwind_abort
done
+mkdir -p "${LOG_DIR}" || unwind_abort
# Write the success indicator here, so that it persists on the target
# filesystem.
echo "INSTALL='Success'" >"${INSTALL_STATUS_CONF}"
-cp -a "${INSTALL_DATA}" "${DATA_DIR}/" || unwind_abort
+# This will create the directory ${DATA_DIR}
+cp -a "${INSTALL_DATA}" "${DATA_DIR}" || unwind_abort
# Preserve the installation/upgrade log:
+# This copies into the already existing directory ${LOG_DIR}
cp -a "${INSTALLER_LOG}" "${LOG_DIR}/" || unwind_abort
umount "${MOUNT_DIR}"