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 <[email protected]>
---

  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
[email protected]

Geanix IVS
https://geanix.com
DK39600706
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to