Skip to content

Commit 3ac577b

Browse files
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
1 parent 7e74aaf commit 3ac577b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/installation.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ make
4141
su
4242
make install
4343
adduser postgres
44-
mkdir /usr/local/pgsql/data
44+
mkdir -p /usr/local/pgsql/data
4545
chown postgres /usr/local/pgsql/data
4646
su - postgres
4747
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

0 commit comments

Comments
 (0)