Skip to content

Commit ebb2396

Browse files
authored
[doctor] authorized-keys: fix displayed check name (#19464)
The registered check name is authorized-keys, not authorized_keys.
1 parent 0abd8b0 commit ebb2396

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/doctor/authorizedkeys.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ func checkAuthorizedKeys(ctx context.Context, logger log.Logger, autofix bool) e
7272
"authorized_keys file %q is out of date.\nRegenerate it with:\n\t\"%s\"\nor\n\t\"%s\"",
7373
fPath,
7474
"gitea admin regenerate keys",
75-
"gitea doctor --run authorized_keys --fix")
76-
return fmt.Errorf(`authorized_keys is out of date and should be regenerated with "gitea admin regenerate keys" or "gitea doctor --run authorized_keys --fix"`)
75+
"gitea doctor --run authorized-keys --fix")
76+
return fmt.Errorf(`authorized_keys is out of date and should be regenerated with "gitea admin regenerate keys" or "gitea doctor --run authorized-keys --fix"`)
7777
}
7878
logger.Warn("authorized_keys is out of date. Attempting rewrite...")
7979
err = asymkey_model.RewriteAllPublicKeys()

0 commit comments

Comments
 (0)