From 45777abe8780fdce62fc614c4a07d265cad18319 Mon Sep 17 00:00:00 2001 From: Joe Slater Date: Fri, 9 Aug 2013 10:31:20 -0700 Subject: nostromo: make sure usr/group www-data exist CQID: 422203 nostromo runs as user/group www-data and needs these to exist when we install it. Signed-off-by: Joe Slater --- meta-webserver/recipes-httpd/nostromo/nostromo_1.9.5.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meta-webserver') diff --git a/meta-webserver/recipes-httpd/nostromo/nostromo_1.9.5.bb b/meta-webserver/recipes-httpd/nostromo/nostromo_1.9.5.bb index e34fba2607..3aaa5c2d4d 100644 --- a/meta-webserver/recipes-httpd/nostromo/nostromo_1.9.5.bb +++ b/meta-webserver/recipes-httpd/nostromo/nostromo_1.9.5.bb @@ -18,7 +18,7 @@ TARGET_CC_ARCH += "${LDFLAGS}" DEPENDS = "openssl" -inherit update-rc.d +inherit update-rc.d useradd INITSCRIPT_NAME = "nostromo" INITSCRIPT_PARAMS = "defaults 70" @@ -27,6 +27,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 -- cgit 1.2.3-korg