diff --git a/postgresql-setup b/postgresql-setup index e566106..a755e11 100644 --- a/postgresql-setup +++ b/postgresql-setup @@ -66,9 +66,9 @@ script_result=0 # code shared between initdb and upgrade actions perform_initdb(){ - if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ] + if [ ! -e "$PGDATA" ] then - mkdir -p "$PGDATA" || return 1 + mkdir "$PGDATA" || return 1 chown postgres:postgres "$PGDATA" chmod go-rwx "$PGDATA" fi diff --git a/postgresql.spec b/postgresql.spec index ea6b2ab..a4de426 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -1103,6 +1103,10 @@ fi %endif %changelog +* Tue Jun 11 2013 Pavel Raiskup - 9.2.4-2 +- postgresql-setup: don't create whole path to server's data to make sure that + the parent directory has correct permissions (#972425) + * Wed Jun 05 2013 Pavel Raiskup - 9.2.4-2 - fix rpmlint warnings - fix aarch64 build by defining missing atomic operations (#970661)