-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Implement occ maintenance:mode --check-if-disabled #35830
Conversation
Signed-off-by: Lee Garrett <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find the working confusing
Maintenance mode is not "disabled", it's either on
or off
.
The meaning is different
I'm open for a different wording. |
I just used the wording from similar calls, btw:
|
I like the short variant Also probably |
I'd also avoid negations is settings/options. Maybe |
How about
|
Seems like a good idea? What do you all prefer? |
I fear that with I'm personally for |
After some pondering I'm also throwing |
So, the server is up for maintenance? 🙈 |
I second that, |
The same possible confusion came to my mind: IMHO, it should be as clear as possible whether on/up refers to Nextcloud (up == maintenance off) or the maintenance mode (up/on == Nextcloud down). Since currently |
How about |
Running `./occ status -e` will write any output. However, it will: exit 0 during normal operation, exit 1 when in maintenance mode, exit 2 when `./occ upgrade` is needed.
Running `./occ status -e` will write any output. However, it will: exit 0 during normal operation, exit 1 when in maintenance mode, exit 2 when `./occ upgrade` is needed. Signed-off-by: Lee Garrett <[email protected]>
Different goals and discussion Can you adjust this PR to |
Ah, I see #35873 They serve different purpose IMHO, so I would keep both (one is api-oriented, while this one is human-oriented) |
Signed-off-by: Lee Garrett [email protected]
Summary
Add a parameter that can be used in scripts. Returns 0 when there is no maintenance mode, and 1 if there is.
TODO
Checklist