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:
parent
0a1cd25f59
commit
37b8bbce96
1 changed files with 5 additions and 2 deletions
|
|
@ -253,7 +253,10 @@ if confirm_default_no "Run wings configure --join-data now?"; then
|
||||||
|
|
||||||
if [[ -n "$JOIN_DATA" ]]; then
|
if [[ -n "$JOIN_DATA" ]]; then
|
||||||
$SUDO mkdir -p /etc/calagopus-wings
|
$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
|
CONFIG_CREATED=true
|
||||||
say "Configuration complete"
|
say "Configuration complete"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue