add admin promotion to README
continuous-integration/drone/push Build is passing Details

This commit is contained in:
iexos 2024-02-13 17:03:38 +01:00
parent b1609c5ef4
commit aa06f74560
1 changed files with 13 additions and 1 deletions

View File

@ -38,4 +38,16 @@ after mongo conaintainer came up the first time run:
```
abra app run wekan.example.org db mongo
> rs.initiate()
```
```
## Promote user to admin
If using SSO, it might happen that there is no admin user. If so, you can fix it manually in the database:
```
$ abra app run <app-name> db bash
# mongo
> use wekan
> db.users.find({'username': '<your username>'})
> db.users.updateOne({'_id': '<_id from result above>'}, {$set: {'isAdmin': true}})
```