Merge pull request #3549 from arete/dev1
postgresql : fix permission PGDATA
This commit is contained in:
commit
2f21af19a2
|
@ -19,7 +19,7 @@ if [ ! -d "$PGDATA" ]; then
|
||||||
|
|
||||||
mkdir -p "$PGDATA"
|
mkdir -p "$PGDATA"
|
||||||
chown -R postgres:postgres "$PGDATA"
|
chown -R postgres:postgres "$PGDATA"
|
||||||
|
chmod 0700 "$PGDATA"
|
||||||
su - postgres -m -c "/usr/bin/initdb $INITOPTS -D '$PGDATA'" >/dev/null
|
su - postgres -m -c "/usr/bin/initdb $INITOPTS -D '$PGDATA'" >/dev/null
|
||||||
|
|
||||||
if [ -f /etc/postgresql/postgresql.conf ]; then
|
if [ -f /etc/postgresql/postgresql.conf ]; then
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'postgresql'
|
# Template file for 'postgresql'
|
||||||
pkgname=postgresql
|
pkgname=postgresql
|
||||||
version=9.4.5
|
version=9.4.5
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
make_build_target="world"
|
make_build_target="world"
|
||||||
configure_args="--with-openssl --with-python
|
configure_args="--with-openssl --with-python
|
||||||
|
@ -48,6 +48,7 @@ post_install() {
|
||||||
vmkdir usr/share/doc/postgresql
|
vmkdir usr/share/doc/postgresql
|
||||||
cp -r doc/src/sgml/html ${DESTDIR}/usr/share/doc/postgresql
|
cp -r doc/src/sgml/html ${DESTDIR}/usr/share/doc/postgresql
|
||||||
vsv postgresql
|
vsv postgresql
|
||||||
|
vlicense COPYRIGHT
|
||||||
|
|
||||||
vinstall ${FILESDIR}/${pkgname}.confd 644 etc/default ${pkgname}
|
vinstall ${FILESDIR}/${pkgname}.confd 644 etc/default ${pkgname}
|
||||||
vinstall ${FILESDIR}/${pkgname}.pam 644 etc/pam.d ${pkgname}
|
vinstall ${FILESDIR}/${pkgname}.pam 644 etc/pam.d ${pkgname}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user