Multiple Gitea Doctor improvements (#10943) (#10990) (#10064) (#9095) #10991
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.
Backport #10943 #10990 #10064 #9095
gitea doctor
(Add a new command doctor to check if some wrong configurations on gitea instance #9095)gitea doctor --list
flag to list the checks that will be run, including those by defaultgitea doctor --run
to run specific checksgitea doctor --all
to run all checksgitea doctor --fix
to attempt to fix what is possible to easily fixgitea doctor --log-file
to set the log-file, be it a file, stdout or to switch off completely. (Fixes previously undetected bug with certain xorm logging configurations - see @6543 comment.)Signed-off-by: Andrew Thornton art27@cantab.net
Co-authored-by: guillep2k 18600385+guillep2k@users.noreply.github.com
Co-authored-by: John Olheiser 42128690+jolheiser@users.noreply.github.com
Co-authored-by: Lunny Xiao xiaolunwen@gmail.com