diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-04-23 00:48:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-22 18:48:47 +0200 |
commit | e7fc078891d41798703b66bed8bdbf55e8b7c5e1 (patch) | |
tree | c525ab344222a1ca30cd8150e9a3b65e1cf6203c /cmd/admin.go | |
parent | d6a33cef23c3be2c2b5179c58ad269cd80f8d478 (diff) | |
download | gitea-e7fc078891d41798703b66bed8bdbf55e8b7c5e1.tar.gz gitea-e7fc078891d41798703b66bed8bdbf55e8b7c5e1.zip |
Fix missing storage init (#15589)
Diffstat (limited to 'cmd/admin.go')
-rw-r--r-- | cmd/admin.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/admin.go b/cmd/admin.go index 31ba77877b..f58a1f9960 100644 --- a/cmd/admin.go +++ b/cmd/admin.go @@ -21,6 +21,7 @@ import ( pwd "code.gitea.io/gitea/modules/password" repo_module "code.gitea.io/gitea/modules/repository" "code.gitea.io/gitea/modules/setting" + "code.gitea.io/gitea/modules/storage" "github.com/urfave/cli" ) @@ -489,6 +490,10 @@ func runDeleteUser(c *cli.Context) error { return err } + if err := storage.Init(); err != nil { + return err + } + var err error var user *models.User if c.IsSet("email") { |