From 4d1b31a23e054738a1bc9ce235c038c816d45a3d Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 24 Jul 2021 10:16:57 +0200 Subject: Updated freebsd postgresql article --- content/docs/freebsd/postgresql.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content') diff --git a/content/docs/freebsd/postgresql.md b/content/docs/freebsd/postgresql.md index c2797c2..515b5ac 100644 --- a/content/docs/freebsd/postgresql.md +++ b/content/docs/freebsd/postgresql.md @@ -58,7 +58,7 @@ Let's say we want to allow a gitea jail running from 10.0.0.4 to a gitea databas ``` echo "CREATE ROLE gitea WITH LOGIN PASSWORD 'secret'; CREATE DATABASE gitea WITH OWNER gitea TEMPLATE template0 ENCODING UTF8 LC_COLLATE 'en_US.UTF-8' LC_CTYPE 'en_US.UTF-8';" \ - | bastille cmd postgresql su - postgres -c psql + | bastille cmd postgresql psql -U postgres echo "host gitea gitea 10.0.0.4/32 scram-sha-256" | bastille cmd postgresql tee -a /var/db/postgres/data13/pg_hba.conf bastille service postgresql postgresql reload -- cgit v1.2.3