From a1ae6ab70a376ccc18b6c6af9575e4fb2f4cb829 Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Sun, 15 Nov 2026 15:59:45 +0100 Subject: [PATCH] NPMplus: offer the container's timezone as the default A closed console or an unattended run ended the install with exit 64 at the timezone prompt; take the container's zone when nothing is entered. --- install/npmplus-install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install/npmplus-install.sh b/install/npmplus-install.sh index 7762499a3..8cb1d2a3c 100644 --- a/install/npmplus-install.sh +++ b/install/npmplus-install.sh @@ -39,7 +39,12 @@ msg_ok "Fetched NPMplus" attempts=0 TZ_INPUT="${var_npmplus_tz:-}" +TZ_DEFAULT="$(cat /etc/timezone 2>/dev/null || true)" while true; do + if [[ -z "$TZ_INPUT" && -n "$TZ_DEFAULT" ]]; then + read -r -p "${TAB3}Enter your TZ Identifier [${TZ_DEFAULT}]: " TZ_INPUT || true + TZ_INPUT="${TZ_INPUT:-$TZ_DEFAULT}" + fi [[ -n "$TZ_INPUT" ]] || read -r -p "${TAB3}Enter your TZ Identifier (e.g., Europe/Berlin): " TZ_INPUT || { msg_error "No TZ identifier given; set var_npmplus_tz or answer the prompt"; exit 64; } if validate_tz "$TZ_INPUT"; then break