diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2022-03-16 11:38:29 +0100 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2022-03-16 11:38:29 +0100 |
commit | 3ac577b912fb869f8c472c66f9bd60db833a103a (patch) | |
tree | 62ffeb5ebb7b5c2e52f1262dd5f9b31899cc60c8 | |
parent | 7e74aafc4335e743199c6c68ca9dd539053db9e5 (diff) | |
download | postgresql-3ac577b912fb869f8c472c66f9bd60db833a103a.tar.gz postgresql-3ac577b912fb869f8c472c66f9bd60db833a103a.zip |
doc: Ensure intermediate path creation with mkdir
The mkdir command in the Installation from Source Short Version docs
didn't use the -p intermediate path creation parameter which likely
would cause the command to fail. At the time of writing, -p wasn't
universally available but it can now be relied upon existing. The -p
parameter is defined by POSIX, at least since posix-2004.
Reported-by: Daniel Westermann <daniel.westermann@dbi-services.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/ZR0P278MB0920263E7F2D546A33E50079D20E9@ZR0P278MB0920.CHEP278.PROD.OUTLOOK.COM
-rw-r--r-- | doc/src/sgml/installation.sgml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index a239bbef2f5..dcd1e772c6c 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -41,7 +41,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 |