--- /etc/rc.d/postgresql 2010-12-21 17:21:54.000000000 +0100 +++ /etc/rc.d/postgresql.suggested 2010-12-27 19:03:01.619044772 +0100 @@ -16,11 +16,11 @@ if [ ! `egrep '^postgres:' /etc/passwd` ]; then stat_busy "Adding postgres user" useradd -u 88 -g postgres -d $PGROOT -s /bin/bash postgres - [ -d $PGROOT ] && chown -R postgres.postgres $PGROOT + [ -d $PGROOT ] && chown -R postgres:postgres $PGROOT stat_done fi if [ ! -d $PGROOT/data ]; then - mkdir -p $PGROOT/data && chown -R postgres.postgres $PGROOT/data + mkdir -p $PGROOT/data && chown postgres:postgres $PGROOT && chown -R postgres:postgres $PGROOT/data su - postgres -c "/usr/bin/initdb $INITOPTS -D $PGROOT/data" fi if [ ! -e /var/log/postgresql.log ]; then