You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/content/doc/usage/command-line.en-us.md
+25
Original file line number
Diff line number
Diff line change
@@ -289,3 +289,28 @@ This command is idempotent.
289
289
290
290
#### convert
291
291
Converts an existing MySQL database from utf8 to utf8mb4.
292
+
293
+
#### doctor
294
+
Diagnose the problems of current gitea instance according the given configuration.
295
+
Currently there are a check list below:
296
+
297
+
- Check if OpenSSH authorized_keys file id correct
298
+
When your gitea instance support OpenSSH, your gitea instance binary path will be written to `authorized_keys`
299
+
when there is any public key added or changed on your gitea instance.
300
+
Sometimes if you moved or renamed your gitea binary when upgrade and you haven't run `Update the '.ssh/authorized_keys' file with Gitea SSH keys. (Not needed for the built-in SSH server.)` on your Admin Panel. Then all pull/push via SSH will not be work.
301
+
This check will help you to check if it works well.
302
+
303
+
For contributors, if you want to add more checks, you can wrie ad new function like `func(ctx *cli.Context) ([]string, error)` and
304
+
append it to `doctor.go`.
305
+
306
+
```go
307
+
varchecklist = []check{
308
+
{
309
+
title: "Check if OpenSSH authorized_keys file id correct",
310
+
f: runDoctorLocationMoved,
311
+
},
312
+
// more checks please append here
313
+
}
314
+
```
315
+
316
+
This function will receive a command line context and return a list of details about the problems or error.
0 commit comments