fix(scripts): fail the federation probe without an answer; quiet init.sh under deploy.sh #4
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/scripts-checks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #3
Changes
scripts/check.sh: the federation probe now passes only when the server actually answers with a status other than 200. A connection error (DNS, refused, timeout) now fails withcould not check federation (…)instead of reporting the endpoint as closed.scripts/init.sh: new--no-hintoption that skips the closing "what to do next" message. Rendering is unchanged, and runninginit.shby hand still prints the hint.scripts/deploy.sh: callsinit.sh --no-hint, since it stops Synapse when the config changed and starts the stack itself. The deploy log no longer tells you to restart Synapse by hand.Verification
sh -npasses for every script (CI also runs this).check.shwithcurlfailing: the federation line is nowFAIL could not check federation (curl:…).check.shwith a stubbedcurlthat answers like a healthy, closed homeserver (versions 200, CORS header, federation 404, register 403): all four lines areok, exit 0.init.shwithout the hint andcheck.shpassing.LGTM!