From 9ff8eb1fc70223fc2cbc880023d960f5bc402f6c Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Thu, 21 Aug 2025 22:41:02 +0000 Subject: [PATCH] fix: allow interactive mode when using curl | bash for Proxmox installations The script was detecting piped input and automatically going into non-interactive mode, preventing users from choosing between Quick and Advanced installation modes. Now checks if /dev/tty is available even when stdin is piped, allowing interaction through the terminal for curl-based installations while still supporting truly non-interactive environments (like automation scripts without any TTY). --- install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 2001fe540..ca4c43330 100755 --- a/install.sh +++ b/install.sh @@ -149,8 +149,10 @@ create_lxc_container() { echo # Check if we're being piped (non-interactive) - # Test if stdin is not a TTY (being piped) - if ! test -t 0; then + # For Proxmox installations, try to use /dev/tty even when piped + # This allows interactive mode when using curl | bash + if ! test -t 0 && ! test -e /dev/tty; then + # No TTY available at all - truly non-interactive echo "Non-interactive mode detected. Using Quick installation." mode="1" else