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>
This commit is contained in:
Sebastian Cabrera 2026-09-09 20:41:03 -04:00
parent 0a1cd25f59
commit 37b8bbce96
Signed by: okseby
GPG key ID: 2DDBFDEE356CF3DE

View file

@ -253,7 +253,10 @@ if confirm_default_no "Run wings configure --join-data now?"; then
if [[ -n "$JOIN_DATA" ]]; then
$SUDO mkdir -p /etc/calagopus-wings
$SUDO "$WINGS_BIN" configure --join-data "$JOIN_DATA"
# --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