mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-23 19:55:05 +00:00
mongodb, paperless-gpt: accept yes as well as y
This commit is contained in:
1 parent
3f0dd1b09b
commit
4738f33fc7
2 files changed
+3
-3
No files matched your search
@@ -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
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in new issue
Block a user