mirror of
https://github.com/postgres/postgres.git
synced 2025-08-05 07:41:25 +03:00
Enable initdb to create several levels of directories for PGDATA, if
`mkdir -p' works.
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 1994, Regents of the University of California
|
# Copyright (c) 1994, Regents of the University of California
|
||||||
#
|
#
|
||||||
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.103 2000/09/01 13:15:27 petere Exp $
|
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.104 2000/09/29 13:38:02 petere Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -385,7 +385,7 @@ then
|
|||||||
else
|
else
|
||||||
if [ ! -d "$PGDATA" ]; then
|
if [ ! -d "$PGDATA" ]; then
|
||||||
echo "Creating directory $PGDATA"
|
echo "Creating directory $PGDATA"
|
||||||
mkdir "$PGDATA" || exit_nicely
|
mkdir -p "$PGDATA" >/dev/null 2>&1 || mkdir "$PGDATA" || exit_nicely
|
||||||
made_new_pgdata=yes
|
made_new_pgdata=yes
|
||||||
else
|
else
|
||||||
echo "Fixing permissions on existing directory $PGDATA"
|
echo "Fixing permissions on existing directory $PGDATA"
|
||||||
|
Reference in New Issue
Block a user