summaryrefslogtreecommitdiffstats
path: root/postgresql.init
diff options
context:
space:
mode:
authorTom Lane <tgl@fedoraproject.org>2004-10-23 20:23:22 +0000
committerTom Lane <tgl@fedoraproject.org>2004-10-23 20:23:22 +0000
commitfefe019c9668356783a8ebb933e7fded2eb2534d (patch)
tree493816e95b854aaff76befcb8a87bea3ef89bbaf /postgresql.init
parent3c38c700e24defcee32514ef8df5d9e0d6e6aa1d (diff)
downloadpostgresql-setup-postgresql-7_4_6-1.tar.gz
postgresql-setup-postgresql-7_4_6-1.tar.xz
postgresql-setup-postgresql-7_4_6-1.zip
Update to Postgres 7.4.6 (bugs 136947, 136949)postgresql-7_4_6-1
Diffstat (limited to 'postgresql.init')
-rw-r--r--postgresql.init4
1 files changed, 2 insertions, 2 deletions
diff --git a/postgresql.init b/postgresql.init
index dab3cf7..9f41e9e 100644
--- a/postgresql.init
+++ b/postgresql.init
@@ -160,9 +160,9 @@ start(){
else
echo -n $"Initializing database: "
- if [ ! -d $PGDATA ]
+ if [ ! -e $PGDATA -a ! -h $PGDATA ]
then
- mkdir -p $PGDATA
+ mkdir -p $PGDATA || exit 1
chown postgres:postgres $PGDATA
chmod go-rwx $PGDATA
fi