From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-webserver][PATCH 1/2] nginx: make nginx user and home directory configurable
Date: Sat, 20 Feb 2016 14:56:48 +0100 [thread overview]
Message-ID: <20160220135648.GB2589@jama> (raw)
In-Reply-To: <1454598194-11339-1-git-send-email-pascal.bach@siemens.com>
[-- Attachment #1: Type: text/plain, Size: 2126 bytes --]
On Thu, Feb 04, 2016 at 04:03:13PM +0100, Pascal Bach wrote:
> This allows selecting a different user then "www" in a bbappend.
> It also allows to change the default value of "/var/www/localhost" to something else.
Missing SOB line in all your patches, please resend.
> ---
> meta-webserver/recipes-httpd/nginx/nginx_1.9.9.bb | 13 ++++++++-----
> 1 file changed, 8 insertions(+), 5 deletions(-)
>
> diff --git a/meta-webserver/recipes-httpd/nginx/nginx_1.9.9.bb b/meta-webserver/recipes-httpd/nginx/nginx_1.9.9.bb
> index 06d61c7..08f53a7 100644
> --- a/meta-webserver/recipes-httpd/nginx/nginx_1.9.9.bb
> +++ b/meta-webserver/recipes-httpd/nginx/nginx_1.9.9.bb
> @@ -27,6 +27,9 @@ inherit update-rc.d useradd
> CFLAGS_append = " -fPIE -pie"
> CXXFLAGS_append = " -fPIE -pie"
>
> +NGINX_WWWDIR ?= "${localstatedir}/www/localhost"
> +NGINX_USER ?= "www"
> +
> EXTRA_OECONF = ""
>
> do_configure () {
> @@ -71,9 +74,9 @@ do_install () {
> fi
> install -d ${D}${sysconfdir}/${BPN}
> ln -snf ${localstatedir}/run/${BPN} ${D}${sysconfdir}/${BPN}/run
> - install -d ${D}${localstatedir}/www/localhost
> - mv ${D}/usr/html ${D}${localstatedir}/www/localhost/
> - chown www:www-data -R ${D}${localstatedir}
> + install -d ${D}${NGINX_WWWDIR}
> + mv ${D}/usr/html ${D}${NGINX_WWWDIR}/
> + chown ${NGINX_USER}:www-data -R ${D}${NGINX_WWWDIR}
>
> install -d ${D}${sysconfdir}/init.d
> install -m 0755 ${WORKDIR}/nginx.init ${D}${sysconfdir}/init.d/nginx
> @@ -130,6 +133,6 @@ INITSCRIPT_PARAMS = "defaults 92 20"
> USERADD_PACKAGES = "${PN}"
> USERADD_PARAM_${PN} = " \
> --system --no-create-home \
> - --home ${localstatedir}/www/localhost \
> + --home ${NGINX_WWWDIR} \
> --groups www-data \
> - --user-group www"
> + --user-group ${NGINX_USER}"
> --
> 2.1.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
prev parent reply other threads:[~2016-02-20 13:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-04 15:03 [meta-webserver][PATCH 1/2] nginx: make nginx user and home directory configurable Pascal Bach
2016-02-04 15:03 ` [meta-webserver][PATCH 2/2] nginx: update to 1.9.10 Pascal Bach
2016-02-20 13:56 ` Martin Jansa [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160220135648.GB2589@jama \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.