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).
This commit is contained in:
Pulse Monitor
2025-08-21 22:41:02 +00:00
parent b34c499327
commit 9ff8eb1fc7
+4 -2
View File
@@ -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