All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] Set PGROOT dir owner to be "postgres".
@ 2016-03-06 20:29 Alan Yaniger
  2016-03-06 20:29 ` Alan Yaniger
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Alan Yaniger @ 2016-03-06 20:29 UTC (permalink / raw)
  To: buildroot

Without setting the owner of /var/lib/pgsql to the user "postgres", 
the postgres server fails to start on boot.

Signed-off-by: Alan Yaniger <alan@tkos.co.il>
---
 package/postgresql/postgresql.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/postgresql/postgresql.mk b/package/postgresql/postgresql.mk
index 444c1b1..5906ce9 100644
--- a/package/postgresql/postgresql.mk
+++ b/package/postgresql/postgresql.mk
@@ -17,6 +17,10 @@ POSTGRESQL_CONF_ENV = ac_cv_type_struct_sockaddr_in6=yes \
 POSTGRESQL_AUTORECONF = YES
 POSTGRESQL_CONF_OPTS = --disable-rpath
 
+define POSTGRESQL_PERMISSIONS
+	/var/lib/pgsql d 755 postgres postgres - - - - -
+endef
+
 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
 # PostgreSQL does not build against uClibc with locales
 # enabled, due to an uClibc bug, see
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-05-23 20:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-06 20:29 [Buildroot] [PATCH 1/2] Set PGROOT dir owner to be "postgres" Alan Yaniger
2016-03-06 20:29 ` Alan Yaniger
2016-03-06 20:29 ` [Buildroot] [PATCH 2/2] docs: Fixed syntax error in makedev-syntax example Alan Yaniger
2016-05-23 20:44   ` Peter Korsgaard
2016-03-06 20:29 ` [Buildroot] [PATCH 2/2] docs: Fixed syntax error in makedev-syntax example. In the makedev syntax documentation, one of the examples lacks the "mode" value Alan Yaniger
2016-03-07  4:51 ` [Buildroot] [PATCH 1/2] Set PGROOT dir owner to be "postgres" Baruch Siach
2016-03-07  5:40   ` Baruch Siach
2016-03-07  8:29   ` Thomas Petazzoni
2016-03-09  9:21     ` Alan Yaniger
2016-03-09 12:15       ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.