From 6f1bb132ad4ce170b9b130c38eadb252dde730a5 Mon Sep 17 00:00:00 2001 From: qw3rtyy1 <236435543+qw3rtyy1@users.noreply.github.com> Date: Tue, 3 Nov 2026 00:08:48 +0300 Subject: [PATCH 1/2] fix(install): capture lowercase characters from the setup code The setup code is rand.Text()[:12], which uses the URL-safe base64 alphabet, so it usually contains lowercase letters. The parser only matched [A-Z0-9] and reported an empty code, dropping the line the installer prints after a first run. --- deploy/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/install.sh b/deploy/install.sh index faa8a22..b7beedb 100644 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -57,6 +57,6 @@ systemctl restart heron say "heron $("$BIN_DIR/heron" version | cut -d' ' -f2) is running" sleep 1 -code=$(journalctl -u heron -n 50 --no-pager 2>/dev/null | sed -n 's/.*setup_code[=":]*\([A-Z0-9]*\).*/\1/p' | tail -n1) +code=$(journalctl -u heron -n 50 --no-pager 2>/dev/null | sed -n 's/.*setup_code[=":]*\([A-Za-z0-9_-]*\).*/\1/p' | tail -n1) say "open http://$(hostname -I 2>/dev/null | cut -d' ' -f1):8080/admin to create the administrator" [ -n "$code" ] && say "setup code: $code" From 22ed10ec9fc5e33135740a819c5c7845686db57e Mon Sep 17 00:00:00 2001 From: qw3rtyy1 <236435543+qw3rtyy1@users.noreply.github.com> Date: Tue, 3 Nov 2026 00:20:53 +0300 Subject: [PATCH 2/2] fix(install): exit 0 when the setup code cannot be read The trailing "[ -n "$code" ] && say" is the last command in the script, so an empty code made the installer return 1 even though the install worked. A failing exit status from curl | sudo sh reads as a failed deploy in anything that checks it. --- deploy/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/install.sh b/deploy/install.sh index b7beedb..e111a2d 100644 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -59,4 +59,6 @@ say "heron $("$BIN_DIR/heron" version | cut -d' ' -f2) is running" sleep 1 code=$(journalctl -u heron -n 50 --no-pager 2>/dev/null | sed -n 's/.*setup_code[=":]*\([A-Za-z0-9_-]*\).*/\1/p' | tail -n1) say "open http://$(hostname -I 2>/dev/null | cut -d' ' -f1):8080/admin to create the administrator" -[ -n "$code" ] && say "setup code: $code" +if [ -n "$code" ]; then + say "setup code: $code" +fi