Skip to content

Commit

Permalink
[doctor] authorized-keys: fix displayed check name (go-gitea#19464)
Browse files Browse the repository at this point in the history
The registered check name is authorized-keys, not authorized_keys.
  • Loading branch information
pilou- authored and AbdulrhmnGhanem committed Aug 23, 2022
1 parent 5082abc commit 43fdbd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/doctor/authorizedkeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ func checkAuthorizedKeys(ctx context.Context, logger log.Logger, autofix bool) e
"authorized_keys file %q is out of date.\nRegenerate it with:\n\t\"%s\"\nor\n\t\"%s\"",
fPath,
"gitea admin regenerate keys",
"gitea doctor --run authorized_keys --fix")
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"`)
"gitea doctor --run authorized-keys --fix")
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"`)
}
logger.Warn("authorized_keys is out of date. Attempting rewrite...")
err = asymkey_model.RewriteAllPublicKeys()
Expand Down

0 comments on commit 43fdbd1

Please sign in to comment.