armbian-next: bump logging archive greet to 14 files

This commit is contained in:
Ricardo Pardini
2023-01-27 01:06:34 +01:00
parent 1c00d64b35
commit 3c5488b002
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ function extension_finish_config__build_nvidia_kernel_module() {
return 0
fi
export INSTALL_HEADERS="yes"
declare -g NVIDIA_DRIVER_VERSION="${NVIDIA_DRIVER_VERSION:-"510"}"
declare -g NVIDIA_DRIVER_VERSION="${NVIDIA_DRIVER_VERSION:-"510"}" # @TODO: this might vary per-release and Debian/Ubuntu
display_alert "Forcing INSTALL_HEADERS=yes; using nVidia driver version ${NVIDIA_DRIVER_VERSION}" "${EXTENSION}" "debug"
}

View File

@@ -27,8 +27,8 @@ function trap_handler_cleanup_logging() {
declare -a existing_log_files_array # array of existing log files: dash and dot in filename required.
mapfile -t existing_log_files_array < <(find "${target_path}" -maxdepth 1 -type f -name "*-*.*")
# if more than 7 log files, warn user...
if [[ "${#existing_log_files_array[@]}" -gt 7 ]]; then
# if more than 14 log files, warn user...
if [[ "${#existing_log_files_array[@]}" -gt 14 ]]; then
# Hey, I fixed Docker archiving, so this should not happen again... heh.
display_alert "Archiving" "${#existing_log_files_array[@]} old log files - be patient & thanks for testing armbian-next! 👍" "wrn"
wait_for_disk_sync # for dramatic effect