From 4853dda5dc532c98ffd06c23ade5f794f39f8873 Mon Sep 17 00:00:00 2001 From: Aris~ Date: Sat, 11 Mar 2023 04:11:09 +0100 Subject: [PATCH] Correct CLI instructions --- doc/DISCLAIMER.md | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index a3c0161..796766c 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -7,28 +7,32 @@ - LDAP supported but HTTP auth not. ## 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 -**Run:** - - $ ( cd /var/www/pleroma/live && sudo -u pleroma MIX_ENV=prod ./bin/pleroma_ctl user new ) +``` +sudo su pleroma -s $SHELL -lc "/var/www/pleroma/live/bin/pleroma_ctl user new " +``` ### Password reset -**Run:** - - $ ( cd /var/www/pleroma/live && sudo -u pleroma MIX_ENV=prod ./bin/pleroma_ctl user reset_password ) +``` +sudo su pleroma -s $SHELL -lc "/var/www/pleroma/live/bin/pleroma_ctl user reset_password " +``` This will generate a **password reset link** that you can then send to the user. ### 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 --[no-]admin ) +``` +sudo su pleroma -s $SHELL -lc "/var/www/pleroma/live/bin/pleroma_ctl user set --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.