2.1 KiB
Pleroma and Yunohost
Some information, for all intents and purposes, on the differences between a direct installation of Pleroma (from the releases) and installation with the Yunohost application package.
Official Package | With Yunohost | |
---|---|---|
Install directory | /opt/pleroma |
/var/www/pleroma/live/ |
Static directory | /var/lib/pleroma/static |
/etc/pleroma/config.exs |
Configuration file | /etc/pleroma/config.exs |
/etc/pleroma/config.exs |
Command line path | /bin/pleroma_ctl |
/var/www/pleroma/live/bin/pleroma_ctl |
Things to remember
-
The installation of Pleroma with Yunohost is a so-called OTP installation (and not MIX, i.e. from the sources). Have this in mind, as the administration commands are not the same in either case.
-
All commands must be run as the
pleroma
user, who is not part of Yunohostadmin
group, it’s not possible to invoque these commands directly withsudo
.
Connect with SSH to your Yunohost server as YNH admin user.
For the commands syntax, have in mind the specificities of Yunohost Pleroma install.
Administration tasks
Adding users
sudo su pleroma -s $SHELL -lc "/var/www/pleroma/live/bin/pleroma_ctl user new <userName> <userEmail>"
Password reset
sudo su pleroma -s $SHELL -lc "/var/www/pleroma/live/bin/pleroma_ctl user reset_password <userName>"
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.
sudo su pleroma -s $SHELL -lc "/var/www/pleroma/live/bin/pleroma_ctl user set <userName> --admin"
Note: --admin
option will make the user moderator and --no-admin
will take away the moderator privileges from the user.