Commit Graph

6 Commits

Author SHA1 Message Date
Hamed Sanaei 5fe46c2e55 fix(ssl): recover interrupted IP certificate migrations
Register recovery before retiring legacy renewal state and detach completed journals before deleting backups.
2026-12-03 21:32:11 +03:30
Hamed Sanaei 6ad00e3149 fix(ssl): preserve independent IP certificates and enable Alpine renewal 2026-12-02 21:25:30 +03:30
Hamed Sanaei 85a8dd6725 fix(ssl): preserve live certificates and renewal state across failed deployments 2026-12-02 21:17:30 +03:30
Sanaei 95f09d6f1e fix(ssl): keep installing when the IP certificate fails, and keep its renewal entry
A failed IP certificate made the installer return early. A fresh install was
left with no service, no result file and its generated login never shown; an
upgrade was left with the panel stopped. Failing issuance is ordinary: IP mode
is the interactive default and it fails whenever port 80 is closed.

Report the failure and carry on over HTTP, as the installer did before. An
invalid XUI_SSL_IPV6 is treated the same way: the certificate is skipped, not
issued for fewer names than were asked for. A failed account registration is
a warning again.

acme.sh records the requested names before it places the order, so a failed
attempt to add IPv6 rewrote the renewal entry of the working IPv4 certificate
and cron then kept renewing it with the names that had just failed. Restore
the entry after a failed order, and remove the one a failed first order
leaves behind.
2026-11-29 17:29:16 +03:30
Hamed Sanaei 51997927f2 fix(ci): support runner ShellCheck diagnostics for indirect calls
Ubuntu 24.04 ships ShellCheck 0.9.0, which reports SC2317 for the EXIT cleanup and dynamically loaded installer test stubs. Scope both old and new diagnostic annotations to those indirect functions and regenerate both standalone scripts. Verified all shell checks and rootless regressions on the runner version as well as ShellCheck 0.11.0.
2026-10-27 10:32:47 +03:30
Hamed Sanaei 825f3c77a5 feat(ssl): auto-detect IPv6 for IP certificates
Discover eligible local IPv6 addresses with explicit interactive consent and preserve unattended IPv4 defaults. Embed shared helpers in both standalone scripts, verify dual-stack listeners and IP SAN/key identity, and preserve live certificates and prior panel state on failure. Add rootless regression coverage, CI checks, and SSL documentation.
2026-10-27 05:55:21 +03:30