Skip to content

Commit a6b32ad

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

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
@@ -71,8 +71,8 @@ func checkAuthorizedKeys(logger log.Logger, autofix bool) error {
7171
"authorized_keys file %q is out of date.\nRegenerate it with:\n\t\"%s\"\nor\n\t\"%s\"",
7272
fPath,
7373
"gitea admin regenerate keys",
74-
"gitea doctor --run authorized_keys --fix")
75-
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"`)
74+
"gitea doctor --run authorized-keys --fix")
75+
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"`)
7676
}
7777
logger.Warn("authorized_keys is out of date. Attempting rewrite...")
7878
err = asymkey_model.RewriteAllPublicKeys()

0 commit comments

Comments
 (0)