CQID: 422203

nostromo runs as user/group www-data and needs these
to exist when we install it.

Signed-off-by: Joe Slater <[email protected]>
---
 recipes-httpd/nostromo/nostromo_1.9.5.bb |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/recipes-httpd/nostromo/nostromo_1.9.5.bb 
b/recipes-httpd/nostromo/nostromo_1.9.5.bb
index 94c32d8..98195b1 100644
--- a/recipes-httpd/nostromo/nostromo_1.9.5.bb
+++ b/recipes-httpd/nostromo/nostromo_1.9.5.bb
@@ -17,7 +17,7 @@ TARGET_CC_ARCH += "${LDFLAGS}"
 
 DEPENDS = "openssl"
 
-inherit update-rc.d
+inherit update-rc.d useradd
 
 INITSCRIPT_NAME = "nostromo"
 INITSCRIPT_PARAMS = "defaults 70"
@@ -26,6 +26,11 @@ do_compile() {
     oe_runmake
 }
 
+# we need user/group www-data to exist when we install
+#
+USERADD_PACKAGES = "${PN}"
+USERADD_PARAM_${PN} = "--system -g www-data www-data"
+
 do_install() {
     install -d ${D}/${sbindir}
     install -m 0755 src/nhttpd/nhttpd ${D}/${sbindir}/nhttpd
-- 
1.7.3.4

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to