diff options
author | Otto Richter <git@otto.splvs.net> | 2024-08-27 02:40:41 +0200 |
---|---|---|
committer | forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org> | 2024-08-27 03:44:08 +0200 |
commit | 5faa51a16b420c38d9270ce8a92465b3a4dc9af0 (patch) | |
tree | aaf80baa7aeb99980b8d2c9589998462ffdfbe6e | |
parent | Merge pull request '[v8.0/forgejo] i18n: update of translations from Codeberg... (diff) | |
download | forgejo-5faa51a16b420c38d9270ce8a92465b3a4dc9af0.tar.xz forgejo-5faa51a16b420c38d9270ce8a92465b3a4dc9af0.zip |
fix: correct doctor commands and rename to forgejo
The syntax is `doctor check --run` , see https://forgejo.org/docs/latest/admin/command-line/#doctor
(cherry picked from commit 94af0e53e5b9012622f4f2a190fb487777eac64b)
-rw-r--r-- | services/doctor/authorizedkeys.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/doctor/authorizedkeys.go b/services/doctor/authorizedkeys.go index eb6dec613f..2920cf51d7 100644 --- a/services/doctor/authorizedkeys.go +++ b/services/doctor/authorizedkeys.go @@ -75,9 +75,9 @@ func checkAuthorizedKeys(ctx context.Context, logger log.Logger, autofix bool) e logger.Critical( "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"`) + "forgejo admin regenerate keys", + "forgejo doctor check --run authorized-keys --fix") + return fmt.Errorf(`authorized_keys is out of date and should be regenerated with "forgejo admin regenerate keys" or "forgejo doctor check --run authorized-keys --fix"`) } logger.Warn("authorized_keys is out of date. Attempting rewrite...") err = asymkey_model.RewriteAllPublicKeys(ctx) |