1
0
Fork 0
mirror of https://git.pleroma.social/pleroma/pleroma.git synced 2026-02-15 17:16:57 +00:00

docs openbsd: No need to switch users when creating DB

This commit is contained in:
Phantasm 2024-11-29 16:00:52 +01:00
parent a323701c33
commit 047916445b
No known key found for this signature in database
GPG key ID: 2669E588BCC634C8

View file

@ -107,14 +107,12 @@ Note: Answer yes when asked to install Hex and rebar3. This step might take some
Create the Pleroma database: Create the Pleroma database:
``` ```
# psql -U postgres -f /home/_pleroma/pleroma/config/setup_db.psql $ psql -U postgres -f config/setup_db.psql
``` ```
Switch back to the \_pleroma user and apply database migrations: Apply database migrations:
``` ```
# su -l _pleroma
$ cd pleroma
$ MIX_ENV=prod mix ecto.migrate $ MIX_ENV=prod mix ecto.migrate
``` ```
@ -343,9 +341,10 @@ Enable and start the pleroma service:
### Create administrative user ### Create administrative user
If your instance is up and running, you can create your first user with administrative rights with the following command as the \_pleroma user: If your instance is up and running, you can create your first user with administrative rights with the following commands as the \_pleroma user:
``` ```
$ cd pleroma
$ MIX_ENV=prod mix pleroma.user new <username> <your@emailaddress> --admin $ MIX_ENV=prod mix pleroma.user new <username> <your@emailaddress> --admin
``` ```