Skip to content

Commit

Permalink
Merge branch 'master' into vendor/update_certmagic
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Apr 22, 2021
2 parents 0de5d06 + e7fc078 commit 61dae9e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/admin.go
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 61dae9e

Please sign in to comment.