diff options
author | Julien Dessaux | 2021-04-15 14:54:06 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-04-15 14:54:06 +0200 |
commit | dbf9b003ec473e1f4e65cfbe1ae0461c6f02c632 (patch) | |
tree | 3b68eaf75a93c8b45392e4fea2b6bd7460474ec5 /content | |
parent | Fixed neovim conceallevel caveat (diff) | |
download | www-dbf9b003ec473e1f4e65cfbe1ae0461c6f02c632.tar.gz www-dbf9b003ec473e1f4e65cfbe1ae0461c6f02c632.tar.bz2 www-dbf9b003ec473e1f4e65cfbe1ae0461c6f02c632.zip |
Fixed postgresql part of the gitea installation notes
Diffstat (limited to 'content')
-rw-r--r-- | content/docs/adyxax.org/git.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/content/docs/adyxax.org/git.md b/content/docs/adyxax.org/git.md index dc6edc9..3d8563b 100644 --- a/content/docs/adyxax.org/git.md +++ b/content/docs/adyxax.org/git.md @@ -15,11 +15,15 @@ pkg_add postgresql-server su - _postgresql mkdir /var/postgresql/data initdb -D /var/postgresql/data -U postgres -A scram-sha-256 -E UTF8 -W -exit +{{< /highlight >}} + +At this point you have to specify the postgres user password. Once done, exit the _postgresql users' shell and run as root : + +{{< highlight sh >}} rcctl enable postgresql rcctl start postgresql su - _postgresql -psql -U postgresql +psql -U postgres CREATE ROLE gitea WITH LOGIN PASSWORD 'XXXXX'; CREATE DATABASE gitea WITH OWNER gitea TEMPLATE template0 ENCODING UTF8 LC_COLLATE 'en_US.UTF-8' LC_CTYPE 'en_US.UTF-8'; {{< /highlight >}} |