From 4738f33fc76507df9ef536e1069b153c3d17e446 Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Fri, 23 Oct 2026 20:50:49 +0200 Subject: [PATCH] mongodb, paperless-gpt: accept yes as well as y --- install/mongodb-install.sh | 2 +- install/paperless-gpt-install.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install/mongodb-install.sh b/install/mongodb-install.sh index fcc221253..7eb4c7c4a 100644 --- a/install/mongodb-install.sh +++ b/install/mongodb-install.sh @@ -18,7 +18,7 @@ if [[ "$(arch_resolve)" == "arm64" ]]; then else install_mongodb_8="${var_mongodb_8:-}" [[ -n "$install_mongodb_8" ]] || read -r -p "${TAB3}Do you want to install MongoDB 8.0 instead of 7.0? [y/N]: " install_mongodb_8 || true - if [[ "$install_mongodb_8" =~ ^[Yy]$ ]]; then + if [[ "$install_mongodb_8" =~ ^[Yy]([Ee][Ss])?$ ]]; then MONGO_VERSION="8.0" setup_mongodb else MONGO_VERSION="7.0" setup_mongodb diff --git a/install/paperless-gpt-install.sh b/install/paperless-gpt-install.sh index 239a5579a..dc9197a06 100644 --- a/install/paperless-gpt-install.sh +++ b/install/paperless-gpt-install.sh @@ -40,7 +40,7 @@ msg_ok "Setup Paperless-GPT" mkdir -p /opt/paperless-gpt-data input_url="${var_paperless_gpt_enter_url:-}" [[ -n "$input_url" ]] || read -rp "${TAB3}Do you want to enter the Paperless local URL now? (y/n) " input_url || true -if [[ $input_url =~ ^[Yy]$ ]]; then +if [[ $input_url =~ ^[Yy]([Ee][Ss])?$ ]]; then PAPERLESS_BASE_URL="${var_paperless_gpt_url:-}" [[ -n "$PAPERLESS_BASE_URL" ]] || read -rp "${TAB3}Enter your Paperless-NGX instance URL (e.g., http://192.168.1.100:8000): " PAPERLESS_BASE_URL || true [[ -n "$PAPERLESS_BASE_URL" ]] || { msg_error "No Paperless-NGX URL given; set var_paperless_gpt_url or answer the prompt"; exit 64; } @@ -50,7 +50,7 @@ fi input_token="${var_paperless_gpt_enter_token:-}" [[ -n "$input_token" ]] || read -rp "${TAB3}Do you want to enter the Paperless API token now? (y/n) " input_token || true -if [[ $input_token =~ ^[Yy]$ ]]; then +if [[ $input_token =~ ^[Yy]([Ee][Ss])?$ ]]; then PAPERLESS_API_TOKEN="${var_paperless_gpt_api_token:-}" [[ -n "$PAPERLESS_API_TOKEN" ]] || read -rp "${TAB3}Enter your Paperless API token: " PAPERLESS_API_TOKEN || true [[ -n "$PAPERLESS_API_TOKEN" ]] || { msg_error "No Paperless API token given; set var_paperless_gpt_api_token or answer the prompt"; exit 64; }