zeripath
c34ad62eea
Mulitple Gitea Doctor improvements ( #10943 ) ( #10990 ) ( #10064 ) ( #9095 ) ( #10991 )
...
* Mulitple Gitea Doctor improvements (#10943 )
Backport #10943
* Add `gitea doctor --list` flag to list the checks that will be run, including those by default
* Add `gitea doctor --run` to run specific checks
* Add `gitea doctor --all` to run all checks
* Add db version checker
* Add non-default recalculate merge bases check/fixer to doctor
* Add hook checker (Fix #9878 ) and ensure hooks are executable (Fix #6319 )
* Fix authorized_keys checker - slight change of functionality here because parsing the command is fragile and we should just check if the authorized_keys file is essentially the same as what gitea would produce. (This is still not perfect as order matters - we should probably just md5sum the two files.)
* Add SCRIPT_TYPE check (Fix #10977 )
* Add `gitea doctor --fix` to attempt to fix what is possible to easily fix
* Add `gitea 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>
* Switch to io.Writer instead of io.StringWriter
Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-04-06 16:15:20 -04:00
..
2020-01-05 01:20:08 +02:00
2020-04-06 16:15:20 -04:00
2019-07-22 15:11:16 +08:00
2019-10-15 01:55:21 +01:00
2018-02-21 18:55:34 +08:00
2019-12-07 23:52:36 +08:00
2020-02-28 00:12:23 -03:00
2017-08-28 12:17:45 +03:00
2019-08-23 12:40:29 -04:00
2020-02-18 21:02:50 -06:00
2020-02-28 00:12:23 -03:00
2017-11-04 15:31:59 +02:00
2020-03-20 23:31:01 +02:00
2020-01-22 08:06:11 +02:00
2020-01-22 08:06:11 +02:00
2019-11-10 09:22:19 +00:00
2020-04-06 16:15:20 -04:00
2019-08-24 11:24:45 +02:00
2017-05-04 13:54:56 +08:00
2020-03-21 10:49:02 +08:00
2019-10-18 09:58:36 +03:00
2019-08-15 22:46:21 +08:00
2020-02-28 14:18:02 -03:00
2019-12-13 23:21:06 +01:00
2019-12-27 21:15:04 +00:00
2017-12-04 01:14:26 +02:00
2019-11-10 16:07:21 +08:00
2019-12-16 11:54:24 +08:00
2020-01-22 12:54:40 +02:00
2018-08-06 06:43:21 +02:00
2020-02-28 00:12:23 -03:00
2019-12-15 16:57:34 -05:00
2019-08-15 22:46:21 +08:00
2019-09-24 21:22:39 +08:00
2019-12-16 11:54:24 +08:00
2019-12-27 20:30:58 +00:00
2019-12-27 20:30:58 +00:00
2019-12-16 11:54:24 +08:00
2020-03-31 08:40:37 -05:00
2020-03-31 08:40:37 -05:00
2019-12-31 03:21:21 -05:00
2019-12-31 03:21:21 -05:00
2019-08-15 22:46:21 +08:00
2019-12-11 23:23:05 -05:00
2019-12-27 20:30:58 +00:00
2019-12-27 20:30:58 +00:00
2019-12-27 20:30:58 +00:00
2019-09-24 13:02:49 +08:00
2019-10-25 22:46:37 +08:00
2020-01-07 15:41:35 +00:00
2020-02-27 11:42:51 -06:00
2019-12-15 16:57:34 -05:00
2019-12-16 11:54:24 +08:00
2020-02-20 15:52:19 +01:00
2019-12-12 21:18:07 +08:00
2019-10-28 18:31:55 +00:00
2019-06-23 18:22:43 +03:00
2020-02-23 22:46:17 +02:00
2017-11-30 17:52:15 +02:00
2019-10-17 11:26:49 +02:00
2019-08-24 11:24:45 +02:00
2020-02-15 19:07:09 +02:00
2019-11-12 16:33:34 +08:00
2020-03-30 15:23:02 +08:00
2019-04-17 16:18:16 +08:00
2019-10-17 11:26:49 +02:00
2019-09-14 12:02:39 +02:00
2020-02-23 22:46:17 +02:00
2019-12-03 20:08:56 -05:00
2019-12-06 13:34:54 +08:00
2019-12-06 13:34:54 +08:00
2019-12-15 09:51:28 +00:00
2019-12-15 11:06:31 +00:00
2019-12-15 04:28:51 +01:00
2020-02-15 21:17:01 +00:00
2019-12-14 18:30:01 +01:00
2019-11-13 07:01:19 +00:00
2019-11-13 07:01:19 +00:00
2019-09-23 23:08:03 +03:00
2020-02-28 14:18:02 -03:00
2019-11-30 01:54:47 -05:00
2020-01-09 16:50:21 +00:00
2019-12-15 09:51:28 +00:00
2018-04-09 23:15:32 +08:00
2020-01-05 18:48:47 +00:00
2020-03-31 08:40:37 -05:00
2019-12-14 18:30:01 +01:00
2019-02-22 11:14:45 -05:00
2020-01-04 20:23:29 -05:00
2019-12-06 12:00:50 +08:00
2019-12-06 12:00:50 +08:00
2019-12-15 11:06:31 +00:00
2019-11-24 11:34:44 -05:00
2019-10-17 11:26:49 +02:00
2019-11-10 09:22:19 +00:00
2019-12-26 13:29:45 +02:00
2020-04-06 16:15:20 -04:00
2019-12-03 20:08:56 -05:00
2019-12-30 18:34:11 -05:00
2019-11-03 19:08:18 +08:00
2020-04-06 16:15:20 -04:00
2017-08-28 12:17:45 +03:00
2019-01-13 21:29:58 -05:00
2019-11-20 13:01:09 -05:00
2019-12-10 07:49:05 +00:00
2019-06-12 15:41:28 -04:00
2019-08-15 22:46:21 +08:00
2019-09-03 23:46:24 +08:00
2020-01-31 08:04:49 +00:00
2019-08-15 22:46:21 +08:00
2019-03-04 21:34:52 -05:00
2019-08-15 22:46:21 +08:00
2020-02-26 23:30:57 -03:00
2019-05-30 11:09:05 -04:00
2019-03-27 17:33:00 +08:00
2019-12-27 21:15:04 +00:00
2019-08-23 12:40:29 -04:00
2017-03-11 16:46:53 +08:00
2017-06-21 08:57:05 +08:00
2019-10-21 21:19:53 +01:00
2019-08-24 11:24:45 +02:00
2020-03-02 17:09:37 -03:00
2020-03-02 17:09:37 -03:00
2019-06-12 15:41:28 -04:00
2018-10-20 18:19:21 -04:00
2019-11-20 19:27:49 +08:00
2020-02-26 20:59:07 -05:00
2019-11-20 19:27:49 +08:00
2019-11-02 23:27:49 +08:00
2019-11-03 22:13:25 +00:00
2019-11-03 22:13:25 +00:00
2020-01-07 18:27:36 +00:00
2020-01-07 18:27:36 +00:00