mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
Correct CLI instructions
This commit is contained in:
parent
3c6ffdb720
commit
4853dda5dc
1 changed files with 15 additions and 11 deletions
|
@ -7,28 +7,32 @@
|
||||||
- LDAP supported but HTTP auth not.
|
- LDAP supported but HTTP auth not.
|
||||||
|
|
||||||
## Admin Tasks
|
## Admin Tasks
|
||||||
Go to **cd /var/www/pleroma/live**.
|
|
||||||
|
Connect with SSH to your Yunohost server as YNH admin user.
|
||||||
|
For the commands syntax, have in mind the specificities of [Yunohost Pleroma install](./yunohost.md).
|
||||||
|
|
||||||
|
|
||||||
### Adding users
|
### Adding users
|
||||||
|
|
||||||
**Run:**
|
```
|
||||||
|
sudo su pleroma -s $SHELL -lc "/var/www/pleroma/live/bin/pleroma_ctl user new <userName> <userEmail>"
|
||||||
$ ( cd /var/www/pleroma/live && sudo -u pleroma MIX_ENV=prod ./bin/pleroma_ctl user new <NICKNAME> <EMAIL> )
|
```
|
||||||
|
|
||||||
### Password reset
|
### Password reset
|
||||||
|
|
||||||
**Run:**
|
```
|
||||||
|
sudo su pleroma -s $SHELL -lc "/var/www/pleroma/live/bin/pleroma_ctl user reset_password <userName>"
|
||||||
$ ( cd /var/www/pleroma/live && sudo -u pleroma MIX_ENV=prod ./bin/pleroma_ctl user reset_password <NICKNAME> )
|
```
|
||||||
|
|
||||||
This will generate a **password reset link** that you can then send to the user.
|
This will generate a **password reset link** that you can then send to the user.
|
||||||
|
|
||||||
### Moderators
|
### Moderators
|
||||||
|
|
||||||
You can make users **moderators**. They will then be able to **delete any post**.
|
You can make users **moderators**. They will then be able to _delete any post_.
|
||||||
|
|
||||||
**Run:**
|
|
||||||
|
|
||||||
$ ( cd /var/www/pleroma/live && sudo -u pleroma MIX_ENV=prod ./bin/pleroma_ctl user set <NICKNAME> --[no-]admin )
|
```
|
||||||
|
sudo su pleroma -s $SHELL -lc "/var/www/pleroma/live/bin/pleroma_ctl user set <userName> --admin"
|
||||||
|
```
|
||||||
|
|
||||||
**--admin** option will **make the user moderator** and **--no-admin** will **take away the moderator privileges** from the user.
|
Note: `--admin` option will _make the user moderator_ and `--no-admin` will _take away_ the moderator privileges from the user.
|
||||||
|
|
Loading…
Add table
Reference in a new issue