[Buildroot] [PATCH v2] postgresql: new package

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Mar 29 11:17:22 UTC 2014


Dear Yann E. MORIN,

On Sat, 29 Mar 2014 12:16:12 +0100, Yann E. MORIN wrote:

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

Ok, good to know, thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list