From 3a83f612922318fe0d4c22e22fceb29dd0f30e32 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Nov 13 2018 16:04:17 +0000 Subject: docs: use "postgresql-setup initdb" to initialize database Replace the old RHEL 5-era command with the newer command, available in RHEL 7 and later. --- diff --git a/docs/source/server_howto.rst b/docs/source/server_howto.rst index 4024ffe..d4d464a 100644 --- a/docs/source/server_howto.rst +++ b/docs/source/server_howto.rst @@ -385,7 +385,7 @@ The following commands will initialize PostgreSQL and will start the database se :: - root@localhost$ su - postgres -c "PGDATA=/var/lib/pgsql/data initdb" + root@localhost$ postgresql-setup initdb root@localhost$ systemctl enable postgresql root@localhost$ systemctl start postgresql