Skip to content

Commit

Permalink
Fix missing storage init (#15589) (#15598)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Apr 23, 2021
1 parent 6e2dacf commit bdba894
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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") {
Expand Down

0 comments on commit bdba894

Please sign in to comment.