mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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>
This commit is contained in:
parent
5c3e27684c
commit
45777abe87
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user