diff --git a/srcpkgs/postgresql/files/postgresql/run b/srcpkgs/postgresql/files/postgresql/run index 8f72ac77d8..3982873cde 100755 --- a/srcpkgs/postgresql/files/postgresql/run +++ b/srcpkgs/postgresql/files/postgresql/run @@ -19,7 +19,7 @@ if [ ! -d "$PGDATA" ]; then mkdir -p "$PGDATA" chown -R postgres:postgres "$PGDATA" - + chmod 0700 "$PGDATA" su - postgres -m -c "/usr/bin/initdb $INITOPTS -D '$PGDATA'" >/dev/null if [ -f /etc/postgresql/postgresql.conf ]; then diff --git a/srcpkgs/postgresql/template b/srcpkgs/postgresql/template index 5226e6c55d..ab9f6a749b 100644 --- a/srcpkgs/postgresql/template +++ b/srcpkgs/postgresql/template @@ -1,7 +1,7 @@ # Template file for 'postgresql' pkgname=postgresql version=9.4.5 -revision=1 +revision=2 build_style=gnu-configure make_build_target="world" configure_args="--with-openssl --with-python @@ -48,6 +48,7 @@ post_install() { vmkdir usr/share/doc/postgresql cp -r doc/src/sgml/html ${DESTDIR}/usr/share/doc/postgresql vsv postgresql + vlicense COPYRIGHT vinstall ${FILESDIR}/${pkgname}.confd 644 etc/default ${pkgname} vinstall ${FILESDIR}/${pkgname}.pam 644 etc/pam.d ${pkgname}