From 48bb9f19f422d76079e68aaac6e090d496f16d52 Mon Sep 17 00:00:00 2001 From: Jamie Nguyen Date: Wed, 19 Dec 2012 09:46:09 +0000 Subject: [PATCH] Use correct file ownership when rotating log files --- nginx.logrotate | 2 +- nginx.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/nginx.logrotate b/nginx.logrotate index a6f829b..0d5b3f1 100644 --- a/nginx.logrotate +++ b/nginx.logrotate @@ -1,5 +1,5 @@ /var/log/nginx/*log { - create 0644 root nginx + create 0644 nginx nginx daily rotate 10 missingok diff --git a/nginx.spec b/nginx.spec index 28ec981..11b55f4 100644 --- a/nginx.spec +++ b/nginx.spec @@ -11,7 +11,7 @@ Name: nginx Epoch: 1 Version: 1.2.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A high performance web server and reverse proxy server Group: System Environment/Daemons @@ -202,6 +202,9 @@ fi %changelog +* Wed Dec 19 2012 Jamie Nguyen - 1:1.2.6-3 +- use correct file ownership when rotating log files + * Tue Dec 18 2012 Jamie Nguyen - 1:1.2.6-2 - send correct kill signal and use correct file permissions when rotating log files (#888225)