From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] postgresql: new package
Date: Sat, 29 Mar 2014 12:16:12 +0100 [thread overview]
Message-ID: <20140329111612.GC3227@free.fr> (raw)
In-Reply-To: <20140329115755.33e90c5b@skate>
Thomas, Peter, All,
On 2014-03-29 11:57 +0100, Thomas Petazzoni spake thusly:
> On Tue, 18 Mar 2014 23:36:00 +0100, Peter Seiderer wrote:
> > Based on suggested new package by Marco Trapanese ([1]).
> >
> > [1] http://lists.busybox.net/pipermail/buildroot/2014-February/090661.html
> >
> > Signed-off-by: Peter Seiderer <ps.report@gmx.net>
[--SNIP--]
> > +define POSTGRESQL_USERS
> > + postgres -1 postgres -1 * /srv/pgsql/data /bin/sh postgres PostgreSQL Server
^^^^^^^^
Do not add its own group to the additionnal groups, just set it to '-'.
> > +endef
>
> Is /srv a normal location for databases? Isn't /var used in general?
>
> > +
> > +define POSTGRESQL_INSTALL_TARGET_FIXUP
> > + $(INSTALL) -v -dm700 $(TARGET_DIR)/srv/pgsql/data
>
> -v seems useless.
>
> Also, is there something that ensures that the /srv/pgsql/data
> directory is owned by the postgres user and group, instead of the
> default root user?
Yes, the mkuser script does chown the homes to the uid:gid of the user:
the output of mkuser is put in the fakeroot script, and mkuser does:
if [ "${home}" != "-" ]; then
mkdir -p "${TARGET_DIR}/${home}"
printf "chown -R %d:%d '%s'\n" "${uid}" "${_gid}" "${TARGET_DIR}/${home}"
fi
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2014-03-29 11:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-18 22:36 [Buildroot] [PATCH v2] postgresql: new package Peter Seiderer
2014-03-29 10:57 ` Thomas Petazzoni
2014-03-29 11:16 ` Yann E. MORIN [this message]
2014-03-29 11:17 ` Thomas Petazzoni
-- strict thread matches above, loose matches on Subject: below --
2014-03-30 21:54 Peter Seiderer
2014-03-30 22:13 ` Thomas Petazzoni
2014-03-30 23:34 ` Peter Seiderer
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=20140329111612.GC3227@free.fr \
--to=yann.morin.1998@free.fr \
--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