diff options
| author | Joe Slater <jslater@windriver.com> | 2013-08-09 10:31:20 -0700 |
|---|---|---|
| committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-08-13 08:50:06 +0100 |
| commit | 45777abe8780fdce62fc614c4a07d265cad18319 (patch) | |
| tree | 4feccd9b9fadebafb68735a2dc95935a3a680a7c /meta-webserver | |
| parent | 5c3e27684cf2ef187b2c99d7f84ea7b367061e70 (diff) | |
| download | meta-openembedded-45777abe8780fdce62fc614c4a07d265cad18319.tar.gz | |
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 <jslater@windriver.com>
Diffstat (limited to 'meta-webserver')
| -rw-r--r-- | meta-webserver/recipes-httpd/nostromo/nostromo_1.9.5.bb | 7 |
1 files changed, 6 insertions, 1 deletions
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}" | |||
| 18 | 18 | ||
| 19 | DEPENDS = "openssl" | 19 | DEPENDS = "openssl" |
| 20 | 20 | ||
| 21 | inherit update-rc.d | 21 | inherit update-rc.d useradd |
| 22 | 22 | ||
| 23 | INITSCRIPT_NAME = "nostromo" | 23 | INITSCRIPT_NAME = "nostromo" |
| 24 | INITSCRIPT_PARAMS = "defaults 70" | 24 | INITSCRIPT_PARAMS = "defaults 70" |
| @@ -27,6 +27,11 @@ do_compile() { | |||
| 27 | oe_runmake | 27 | oe_runmake |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | # we need user/group www-data to exist when we install | ||
| 31 | # | ||
| 32 | USERADD_PACKAGES = "${PN}" | ||
| 33 | USERADD_PARAM_${PN} = "--system -g www-data www-data" | ||
| 34 | |||
| 30 | do_install() { | 35 | do_install() { |
| 31 | install -d ${D}/${sbindir} | 36 | install -d ${D}/${sbindir} |
| 32 | install -m 0755 src/nhttpd/nhttpd ${D}/${sbindir}/nhttpd | 37 | install -m 0755 src/nhttpd/nhttpd ${D}/${sbindir}/nhttpd |
