Skip to content

Commit 8979754

Browse files
committed
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.
1 parent d25379e commit 8979754

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/sgml/installation.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ make
3636
su
3737
make install
3838
adduser postgres
39-
mkdir /usr/local/pgsql/data
39+
mkdir -p /usr/local/pgsql/data
4040
chown postgres /usr/local/pgsql/data
4141
su - postgres
4242
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
@@ -1834,7 +1834,7 @@ export MANPATH
18341834
<productname>PostgreSQL</> server account. It will not work as
18351835
root.
18361836
<screen>
1837-
root# <userinput>mkdir /usr/local/pgsql/data</>
1837+
root# <userinput>mkdir -p /usr/local/pgsql/data</>
18381838
root# <userinput>chown postgres /usr/local/pgsql/data</>
18391839
root# <userinput>su - postgres</>
18401840
postgres$ <userinput>/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data</>

0 commit comments

Comments
 (0)