Repository navigation
[3.0] Runs the welcome step's checks when installing from the command line - #9688
Merged
Sesquipedalian merged 1 commit intoSep 13, 2026
Conversation
Install::welcome() returns as soon as contbutt is set, which is how a submitted welcome form moves on. From the command line contbutt has to be passed with every run, so the PHP version, database, session and manifest checks never ran there, and a CLI install went ahead on a checkout with missing or altered files. On the command line the checks now always run, and decide whether the install continues. install-forum.sh removes a manifest that is not part of HEAD before resetting, unstaging it first if it was staged, so the entrypoint builds a fresh one from the current checkout rather than the installer checking edited files against an old one. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: albertlast <mathiaspapealbert@hotmail.com>
This was referenced Sep 13, 2026
Sesquipedalian
approved these changes
Sep 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Install::welcome()returns as soon as$_POST['contbutt']is set. On the web that is how a submitted welcome form moves on, and there the checks have already run on the page the admin just saw.On the command line it cannot work that way.
Maintenance::execute()runs every step in one process, andwelcome()otherwise ends inreturn false, so a CLI install has to pass--contbutt=1from the start —.docker/install-forum.shdoes exactly that. The early return then fires before any check, so the PHP version, 64-bit build, database support, session, mbstring and fileinfo checks, and the file manifest check from #9679, are never looked at on the command line.On
release-3.0, with a manifest in place and one template edited after it was built:With this change the early return applies only outside the CLI, and on the command line
welcome()runs its checks and returns whether they passed — the same shape asUpgrade::welcomeLogin(), which returnstrueunder the CLI once its own checks are done.Keeping
install-forum.shworking. The Docker entrypoint builds a manifest from the checkout when there is none, and nothing rebuilds it afterwards:reset.shrestarts the container, but the entrypoint skips the build whenever a manifest exists. Once CLI installs check files, a manifest built before a developer's last edit fails every install. Soinstall-forum.shremoves a manifest that is not part ofHEADbefore resetting, and unstages it first if it was staged, since the entrypoint onrelease-3.0stages it (#9687). The restarted entrypoint then builds a fresh one, or none on a dirty working tree, which a development version's installer accepts. A manifest committed at a release tag is left alone.Verified on an isolated Docker stack built from this branch:
Not reachable from the PHPUnit suite: this is the installer's command-line flow, and running it from the integration suite would replace the very forum that suite runs against.
Issues References (Fixes|Related|Closes)
🤖 Generated with Claude Code