From 37b8bbce966ba813555b037e8fba372605da69e1 Mon Sep 17 00:00:00 2001 From: Sebastian Cabrera Date: Wed, 9 Sep 2026 20:41:03 -0400 Subject: [PATCH] Fix wings configure failing under curl|bash on re-run wings configure now prompts to confirm overwriting an existing config.yml. Under curl|bash stdin isn't a TTY, so the prompt fails with "not a terminal" instead of writing the config. Add --override to skip that prompt, since the installer already gets explicit user confirmation via /dev/tty beforehand. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- install-wings.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install-wings.sh b/install-wings.sh index 88dd706..7e4c922 100644 --- a/install-wings.sh +++ b/install-wings.sh @@ -252,8 +252,11 @@ if confirm_default_no "Run wings configure --join-data now?"; then JOIN_DATA="$(extract_join_data "$JOIN_DATA_RAW")" if [[ -n "$JOIN_DATA" ]]; then - $SUDO mkdir -p /etc/calagopus-wings - $SUDO "$WINGS_BIN" configure --join-data "$JOIN_DATA" + $SUDO mkdir -p /etc/calagopus-wings + # --override skips wings' interactive "overwrite existing config?" prompt. + # Without it, a re-run (or any pre-existing config.yml) makes wings try to + # read a confirm from stdin, which fails with "not a terminal" under curl|bash. + $SUDO "$WINGS_BIN" configure --join-data "$JOIN_DATA" --override CONFIG_CREATED=true say "Configuration complete" else