Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] Set PGROOT dir owner to be "postgres".
Date: Mon, 7 Mar 2016 06:51:42 +0200	[thread overview]
Message-ID: <20160307045142.GM2877@tarshish> (raw)
In-Reply-To: <1457296152-4047-1-git-send-email-alan@tkos.co.il>

Hi Alan,

On Sun, Mar 06, 2016 at 10:29:09PM +0200, Alan Yaniger wrote:
> 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

A better place for this IMO would be near POSTGRESQL_USERS below.

Thanks,
baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

  parent reply	other threads:[~2016-03-07  4:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Baruch Siach [this message]
2016-03-07  5:40   ` [Buildroot] [PATCH 1/2] Set PGROOT dir owner to be "postgres" Baruch Siach
2016-03-07  8:29   ` Thomas Petazzoni
2016-03-09  9:21     ` Alan Yaniger
2016-03-09 12:15       ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160307045142.GM2877@tarshish \
    --to=baruch@tkos.co.il \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox