commit: 047916445be61d2d86064e22a8acc22b6c017f5b
parent a323701c3369650736692e360d95f162d62df71f
Author: Phantasm <phantasm@centrum.cz>
Date: Fri, 29 Nov 2024 16:00:52 +0100
docs openbsd: No need to switch users when creating DB
Diffstat:
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/docs/installation/openbsd_en.md b/docs/installation/openbsd_en.md
@@ -107,14 +107,12 @@ Note: Answer yes when asked to install Hex and rebar3. This step might take some
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
```
@@ -343,9 +341,10 @@ Enable and start the pleroma service:
### 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
```