Add a new command doctor to check if some wrong configurations on gitea instance (#9095)

* add doctor

* Add a new command doctor to check if some wrong configurations on gitea instance

* fix import

* use regex match authorized_keys on doctor

* Add documentation
This commit is contained in:
Lunny Xiao 2020-01-11 22:24:57 +08:00 committed by Antoine GIRARD
parent f2e6c4538e
commit f69f5a9f10
3 changed files with 156 additions and 0 deletions

View file

@ -68,6 +68,7 @@ arguments - which can alternatively be run by running the subcommand web.`
cmd.CmdMigrate,
cmd.CmdKeys,
cmd.CmdConvert,
cmd.CmdDoctor,
}
// Now adjust these commands to add our global configuration options