postgresql : fix permission PGDATA and license

Signed-off-by: Gerardo Di Iorio <arete74@gmail.com>
This commit is contained in:
Gerardo Di Iorio 2016-02-12 07:47:19 +00:00
parent b10c2f8165
commit 70eaffc7d5
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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}