diff options
author | Pilou <pierre-louis.bonicoli@libregerbil.fr> | 2022-04-24 20:06:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-24 20:06:33 +0200 |
commit | ebb23967dc14b75a5559a36cfd3c25a6005e4a55 (patch) | |
tree | 167795e807c4beb70e3788cd2eee939659651caa /modules/doctor/authorizedkeys.go | |
parent | 0abd8b0abc389917f3739deed6059ad9b443abd4 (diff) | |
download | gitea-ebb23967dc14b75a5559a36cfd3c25a6005e4a55.tar.gz gitea-ebb23967dc14b75a5559a36cfd3c25a6005e4a55.zip |
[doctor] authorized-keys: fix displayed check name (#19464)
The registered check name is authorized-keys, not authorized_keys.
Diffstat (limited to 'modules/doctor/authorizedkeys.go')
-rw-r--r-- | modules/doctor/authorizedkeys.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/doctor/authorizedkeys.go b/modules/doctor/authorizedkeys.go index 3eb931e6f6..18e7a3cbf4 100644 --- a/modules/doctor/authorizedkeys.go +++ b/modules/doctor/authorizedkeys.go @@ -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() |