Subject: [alpine-aports] [PATCH 3/3] main/nginx-initscripts: upgrade to 1.8.1

From: Valery Kartel <[email-masked]>
Date: Wed, 27 Jan 2016 10:39:41 +0200

- cleanups in logrotate
---
 main/nginx-initscripts/APKBUILD        | 3 ++-
 main/nginx-initscripts/nginx.logrotate | 8 ++------
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/main/nginx-initscripts/APKBUILD b/main/nginx-initscripts/APKBUILD
index 3d263bc..be9ab6f 100644
--- a/main/nginx-initscripts/APKBUILD
+++ b/main/nginx-initscripts/APKBUILD
@@ -1,7 +1,8 @@
 # Maintainer: Natanael Copa <[email-masked]>
+# Contributor: Valery Kartel <[email-masked]>
 
 pkgname=nginx-initscripts
-pkgver=1.8.0
+pkgver=1.8.1
 pkgrel=0
 pkgdesc="initscripts and logrotate config for nginx"
 url="http://www.nginx.org"
diff --git a/main/nginx-initscripts/nginx.logrotate b/main/nginx-initscripts/nginx.logrotate
index 00e5a94..75815c9 100644
--- a/main/nginx-initscripts/nginx.logrotate
+++ b/main/nginx-initscripts/nginx.logrotate
@@ -1,12 +1,8 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.logrotate,v 1.1 2010/01/03 20:29:40 djc Exp $
-
-/var/log/nginx/*.log {
+/var/log/nginx/log {
 	missingok
 	sharedscripts
 	postrotate
-		test -r /var/run/nginx.pid && kill -USR1 `cat /var/run/nginx.pid`
+		/etc/init.d/nginx --quiet --ifstarted reload
 	endscript
 }
 
-- 
2.7.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Valery Kartel <[email-masked]>
Date: Wed, 27 Jan 2016 10:42:58 +0200

This patch is not needed, and it contains an error.

2016-01-27 10:39 GMT+02:00 Valery Kartel <[email-masked]>:

> -# $Header:
> /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.logrotate,v 1.1
> 2010/01/03 20:29:40 djc Exp $
> -
> -/var/log/nginx/*.log {
> +/var/log/nginx/log {
>         missingok
>         sharedscripts
>         postrotate