plaidshirt
plaidshirt

Reputation: 5681

Unable to change Gitea admin password

I am unable to change Gitea admin password from command prompt. I try following command.

gitea admin change-password --username myusername --password asecurenewpassword

Error message:

models.SetEngine: Failed to connect to database: Unknown database type: 2019/07/17 10:57:10 [I] XORM Log Mode: Console(Info)

Upvotes: 1

Views: 1809

Answers (1)

Use parameter --config to point the exact path of gitea config.

So, if config file is located at /etc/gitea/app.ini, then run:

gitea admin change-password --username myusername --password asecurenewpassword  --config /etc/gitea/app.ini

Upvotes: 2

Related Questions