Skip to contentSkip to conversation

nginx: add group www-data

PATCH In review Robert Yang 2 participants 4 messages Jun 7, 2016 – Jun 16, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 nginx: add group www-data

Fixed:
Running useradd commands...
useradd: group 'www-data' does not exist

---
 meta-webserver/recipes-httpd/nginx/nginx.inc | 1 +
 1 file changed, 1 insertion(+)
meta-webserver/recipes-httpd/nginx/nginx.inc +1 -0
index ebf926a..946db12 100644
@@ -130,6 +130,7 @@ INITSCRIPT_NAME = "nginx"
 INITSCRIPT_PARAMS = "defaults 92 20"
 
 USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "--system www-data"
 USERADD_PARAM_${PN} = " \
     --system --no-create-home \
     --home ${NGINX_WWWDIR} \
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 nostromo: add group www-data

Fixed:
Running useradd commands...
useradd: group 'www-data' does not exist

---
 meta-webserver/recipes-httpd/nostromo/nostromo_1.9.5.bb | 1 +
 1 file changed, 1 insertion(+)
meta-webserver/recipes-httpd/nostromo/nostromo_1.9.5.bb +1 -0
index 562ecd0..c6593e1 100644
@@ -30,6 +30,7 @@ do_compile() {
 # we need user/group www-data to exist when we install
 #
 USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "--system www-data"
 USERADD_PARAM_${PN} = "--system -g www-data www-data"
 
 do_install() {
Signature · 1 line
2.7.4
#2 lore raw
In reply to Robert Yang

Sorry, please hold on the two patches, base-passwd does provide www-data, I should not meet this orror in theory.

// Robert

Quoted 22 lines · Robert Yang

Fixed:
Running useradd commands...
useradd: group 'www-data' does not exist

---
  meta-webserver/recipes-httpd/nginx/nginx.inc | 1 +
  1 file changed, 1 insertion(+)
meta-webserver/recipes-httpd/nginx/nginx.inc +1 -0
index ebf926a..946db12 100644
@@ -130,6 +130,7 @@ INITSCRIPT_NAME = "nginx"
  INITSCRIPT_PARAMS = "defaults 92 20"
 
  USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "--system www-data"
  USERADD_PARAM_${PN} = " \
      --system --no-create-home \
      --home ${NGINX_WWWDIR} \
#3 lore raw
Quoted 3 lines · Robert Yang

Sorry, please hold on the two patches, base-passwd does provide www-data, I should not meet this orror in theory.

For some reason nostromo, nginx, sthttpd are now failing because of www-data user group:
http://errors.yoctoproject.org/Errors/Build/17410/

Any idea why it happends? I suspect last sthttpd change.

Quoted 31 lines

// Robert

Quoted 22 lines · Robert Yang

Fixed:
Running useradd commands...
useradd: group 'www-data' does not exist

---
  meta-webserver/recipes-httpd/nginx/nginx.inc | 1 +
  1 file changed, 1 insertion(+)
meta-webserver/recipes-httpd/nginx/nginx.inc +1 -0
index ebf926a..946db12 100644
@@ -130,6 +130,7 @@ INITSCRIPT_NAME = "nginx"
  INITSCRIPT_PARAMS = "defaults 92 20"
 
  USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "--system www-data"
  USERADD_PARAM_${PN} = " \
      --system --no-create-home \
      --home ${NGINX_WWWDIR} \
Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]