X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by lists.alpinelinux.org (Postfix) with ESMTP id CF1575C435A for ; Tue, 25 Oct 2016 13:09:43 +0000 (GMT) Received: by mail-lf0-f51.google.com with SMTP id o16so10019954lff.7 for ; Tue, 25 Oct 2016 06:09:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zSA1tEb9AV7OsToRC5Gt67n4eEbdqkxRK238wQ7b+rM=; b=WkwIPe6mILSKmIYFKYLKsEK/0tKg6PPpLg214s/GuC/XITJYAhG1VS9dBfARxNqB+X B80e8YH/7Jca/TdNaJtuCgec6v2a3hDfM+3A2IrE0/+NvCvCyF1kgYfsvKfsW18xUbNC blejg4iwZU2MywqhcHw4nviHF5kkwCWC7hjMxbMgBDuAZh6iL1tm/HISoEcZx34M1sQ6 PyxRsK3o7hr8vIl51BWZCn9L790rolFwZhSy/arGsYunc51ov0QppL3MMOwvY6I1N/08 oHF89CJz0BsuzNCtAHcm8rHGOMs249zxMZklxpR77F8zl/z6O5rkqiJ8pXL5FjKjoUX/ jqaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=zSA1tEb9AV7OsToRC5Gt67n4eEbdqkxRK238wQ7b+rM=; b=lI4MJwvxDIaRMTatcFK/idGYYB/2wN13ZLKUfnMoyj/XmzGBObXQ7b24hvGxRb2fyk 9JAx+ApEyNwBzGL82+k3yjeyQ/9bPGH8yhReJo6erwzHrOgHcYNmoCglDTNjo0tn/WF7 jvK7K8aYthvRp9anRQfU9pPNcuRuSfh8CAItn+aur8eVAuqHDG0TUytCjb0sUTgZlFuC BNzO/zf6RKGIy7Q5eVPxRkm1rgJid+4xYxejDXQvtEkjQ+eAmfO1UbzYF2jftTFGHJd8 jK4YBf9t2EOAkvLbtImjhPB+/DHLB/HFgSpVPL2mkYmpkibJhzUYqVZIcqqFmKiWmspa v1Vw== X-Gm-Message-State: ABUngvcIwTf6Yb5BEE2vfJZU+Bds9WS62nsWT6pWKdRTzqRC4RDdve+iZohTVKNnehk4Mg== X-Received: by 10.25.221.84 with SMTP id u81mr9752520lfg.166.1477390575371; Tue, 25 Oct 2016 03:16:15 -0700 (PDT) Received: from vostro.util.wtbts.net ([2001:1bc8:101:f402:e66f:13ff:fef3:8cd0]) by smtp.gmail.com with ESMTPSA id o77sm3747697lff.21.2016.10.25.03.16.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Oct 2016 03:16:15 -0700 (PDT) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Tue, 25 Oct 2016 13:16:12 +0300 From: Timo Teras To: Joe Borg Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] main/nginx: pre-install to create /run/nginx Message-ID: <20161025131612.1c9cb9a4@vostro.util.wtbts.net> In-Reply-To: <20161025074054.6084-1-cyborg101010@gmail.com> References: <20161025074054.6084-1-cyborg101010@gmail.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.28; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 25 Oct 2016 08:40:54 +0100 Joe Borg wrote: > Nginx throws an error, the first time you run it, because > the /run/nginx directory does not exist. Have added to the > pre-install script to create this, if it doesn't already exist. > > http://bugs.alpinelinux.org/issues/6380 > --- > main/nginx/nginx.pre-install | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/main/nginx/nginx.pre-install > b/main/nginx/nginx.pre-install index ae5b685..e30aa2f 100644 > --- a/main/nginx/nginx.pre-install > +++ b/main/nginx/nginx.pre-install > @@ -5,4 +5,8 @@ addgroup -S nginx 2>/dev/null > adduser -S -D -H -h /var/lib/nginx -s /sbin/nologin -G nginx -g > nginx nginx 2>/dev/null addgroup nginx www-data 2>/dev/null > > +if [ ! -d /run/nginx ]; then > + mkdir /run/nginx > +fi > + > exit 0 Not ok. $ mount|grep /run tmpfs on /run type tmpfs (rw,nodev,relatime,size=768268k,mode=755) That is /run is a tmpfs mount and gets recreated on reboot. This should be done in the init.d script. Thanks. --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---