Commit graph

26 commits

Author SHA1 Message Date
12c20e12e8
Strip all whitespace from join-data instead of just the first token
extract_join_data() previously used `awk '{print $1}'` as its final
step, which only keeps the first whitespace-delimited chunk. Since the
join-data token is base64 and never legitimately contains whitespace,
any paste that gets hard-wrapped across multiple lines (long tokens
wrapped by a terminal or the panel UI, or CRLF line endings) was
silently truncated at the first space/newline, even when the raw
input already contained the rest of the token. This produced a valid
but incomplete base64 string that decoded into a config.yml missing
trailing fields such as `remote`, causing wings to fail at startup
with "invalid remote configuration, cannot connect to panel".

Now strips every whitespace character from the token instead of only
keeping the first token, so wrapped/multi-line pastes are captured in
full regardless of how prompt() received them.

Also bumps the installer banner to v1.3.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-09 21:19:14 -04:00
54dd3e2199
Update join-data prompt text to match panel's calagopus-wings prefix
The panel now generates the auto-deploy command as
"calagopus-wings configure --join-data ..." instead of
"wings configure --join-data ...". extract_join_data() already handles
any prefix (it matches on the --join-data flag itself), so this is a
docs/prompt wording update only, keeping the on-screen instructions in
sync with what users actually copy from the panel.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-09 21:00:42 -04:00
90f9c9d954
Fix prompt() silently truncating multi-line pasted input
`prompt()` used a single `read -r`, which stops at the first newline.
If a pasted value (most notably join-data copied from the panel UI)
arrives with an embedded newline, everything after it was silently
dropped, and the leftover fragment would be consumed by the *next*
prompt instead. The truncated-but-still-valid-looking base64 could
still decode successfully, just missing trailing fields like `remote`,
producing a config.yml that fails at startup with "invalid remote
configuration, cannot connect to panel".

prompt() now drains any additional lines already buffered on the TTY
after the first read, so a multi-line paste is captured in full
without blocking on further keystrokes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-09 20:59:01 -04:00
37b8bbce96
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>
2026-09-09 20:41:03 -04:00
0a1cd25f59
fix $cfg path 2026-08-17 21:29:56 -04:00
75dda8f900
update forgejo update script now that its docker 2026-07-08 16:29:51 -04:00
d8e62067ba
update readme 2026-07-04 03:55:17 -04:00
ad59f22304
slight update to temp env 2026-07-04 03:50:36 -04:00
badeb63f9c
make temp env curl-able 2026-07-04 03:47:39 -04:00
0d7e4fea95
add temp env script 2026-07-04 03:44:20 -04:00
290f8a8b42
allow full config command parsing 2026-07-02 11:03:30 -04:00
b2c75bfb3c
oops silly me 2026-07-02 10:59:34 -04:00
def89eed7a
update readme 2026-07-02 10:57:34 -04:00
fc2588a515
fix claude is kinda stupid still 2026-07-02 10:28:48 -04:00
75feeb3206
update forgejo update script 2026-07-01 17:40:22 -04:00
cf61608b21
update panel update script 2026-07-01 16:27:50 -04:00
e32c5957f4
update wings update script 2026-07-01 16:18:23 -04:00
e8a6334d33
add update forgejo script 2026-03-20 16:08:03 -04:00
ecb4c14600
bump ver 2026-02-27 12:26:57 -05:00
c8ccdbaf3b
add docker install anim 2026-02-27 12:22:37 -05:00
2d36f66087
prettify 2026-02-26 17:11:44 -05:00
cd3fba634e
fix ssl config update 2026-02-26 16:52:18 -05:00
487c32ba16
fix certbot section 2026-02-26 16:45:42 -05:00
137a6f1f00
add wings installer script 2026-02-26 16:37:31 -05:00
5853ca433f
init commit 2026-01-23 21:14:41 -05:00
fd7007e769 Initial commit 2026-01-24 02:13:44 +00:00