From b47f94a09ab086b8d969202911a6fbceab26a890 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Tue, 12 May 2020 14:35:08 -0600 Subject: [PATCH] doc: update postgresql-setup command for el8 and Fedora Fedora and RHEL 8 use a newer syntax for postgresql-setup's initdb command. Provide the older command and the newer command in the Server Howto documentation. (We can remove the RHEL 7 version when we drop RHEL 7 support.) --- docs/source/server_howto.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/source/server_howto.rst b/docs/source/server_howto.rst index 484150cf..a084e519 100644 --- a/docs/source/server_howto.rst +++ b/docs/source/server_howto.rst @@ -383,11 +383,16 @@ Install the ``postgresql-server`` package:: Initialize PostgreSQL DB: ------------------------- -The following commands will initialize PostgreSQL and will start the database service - -:: +Initialize PostgreSQL:: + # On RHEL 7: root@localhost$ postgresql-setup initdb + + # Or RHEL 8 and Fedora: + root@localhost$ postgresql-setup --initdb --unit postgresql + +And start the database service:: + root@localhost$ systemctl enable postgresql --now Setup User Accounts: