diff options
Diffstat (limited to 'postgresql.init')
-rw-r--r-- | postgresql.init | 4 |
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 |