add admin promotion to README
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
b1609c5ef4
commit
aa06f74560
14
README.md
14
README.md
|
@ -38,4 +38,16 @@ after mongo conaintainer came up the first time run:
|
||||||
```
|
```
|
||||||
abra app run wekan.example.org db mongo
|
abra app run wekan.example.org db mongo
|
||||||
> rs.initiate()
|
> 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}})
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue