From 897975464458ed6b09e10672f90956b88f356ccb Mon Sep 17 00:00:00 2001 From: "Dana M. Diederich" Date: Wed, 6 Apr 2016 07:24:58 -0700 Subject: [PATCH] Add -p (parents) flag to mkdir While following the short installation instructions, there is a good chance that /usr/local/pgsql won't exist, so mkdir -p will create it on the way to making the full, example, data directory. --- doc/src/sgml/installation.sgml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index 1564b8ea04ee0..8782c87ab66e5 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -36,7 +36,7 @@ make su make install adduser postgres -mkdir /usr/local/pgsql/data +mkdir -p /usr/local/pgsql/data chown postgres /usr/local/pgsql/data su - postgres /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data @@ -1834,7 +1834,7 @@ export MANPATH PostgreSQL server account. It will not work as root. -root# mkdir /usr/local/pgsql/data +root# mkdir -p /usr/local/pgsql/data root# chown postgres /usr/local/pgsql/data root# su - postgres postgres$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data