Skip to content

Log the output of 'occ maintenance:mode --off' if it fails #617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

julien-nc
Copy link
Member

If the return code of occ maintenance:mode --off is not 0, we might be interested in the command output.

We can backport this to 31, 30 and 29.

@julien-nc
Copy link
Member Author

It turns out that system just returns what's written in stdout, not stderr (what we are mostly interested in).
How about switching to something like https://www.php.net/manual/fr/function.system.php#94929 ?

@come-nc
Copy link
Collaborator

come-nc commented Apr 15, 2025

Yeah, do we have a helper somewhere for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants