]> source.dussan.org Git - nextcloud-server.git/commit
Implement occ status command via return codes (Fixes: #35704)
authorLee Garrett <lgarrett@rocketjump.eu>
Thu, 22 Dec 2022 21:03:21 +0000 (22:03 +0100)
committerLee Garrett <lgarrett@rocketjump.eu>
Tue, 3 Jan 2023 09:58:07 +0000 (10:58 +0100)
commitfba906e34a35ab31a334421edacdd7d4d29b1d7f
tree05e2685e616f7f7af55a6474697f10eff2fc668c
parent5b64b8119fc9c004887b514722bcecc2353564de
Implement occ status command via return codes (Fixes: #35704)

Running `./occ status -e` will produce 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 <lgarrett@rocketjump.eu>
core/Command/Status.php
lib/private/Console/Application.php