[oe] [PATCH] postgresql: Allow successful run of postgresql-setup
Martin Hundebøll
martin at geanix.com
Fri Nov 23 10:01:55 UTC 2018
On 23/11/2018 10.38, Otavio Salvador wrote:
> The postgresql-setup utility log-in on postgres user to create the
> database, however, the shell set to the user is bash and it wasn't
> being installed as runtime dependency.
>
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
> ---
>
> meta-oe/recipes-dbs/postgresql/postgresql.inc | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc
> index 3bf71f02e..5fc823898 100644
> --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc
> +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc
> @@ -231,6 +231,7 @@ FILES_${PN} += "${sysconfdir}/init.d/${BPN}-server \
> if 'pam' == d.getVar('enable_pam') \
> else ''} \
> "
> +RDEPENDS_${PN} += "bash"
Is bash needed or would busybox' ash be enough? If so, then changing
USERADD_PARAM_${PN} to use /bin/sh instead would be leaner.
// Martin
>
> FILES_${PN}-client = "${bindir}/clusterdb \
> ${bindir}/createdb \
>
--
Kind regards,
Martin Hundebøll
Embedded Linux Consultant
+45 61 65 54 61
martin at geanix.com
Geanix IVS
https://geanix.com
DK39600706
More information about the Openembedded-devel
mailing list