[nginx/f17] Use correct file ownership when rotating log files

Jamie Nguyen jamielinux at fedoraproject.org
Wed Dec 19 09:48:11 UTC 2012


commit f58b6db6de4145412d27b87ce21880470ef510ac
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Wed Dec 19 09:47:53 2012 +0000

    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 9f22771..0d5b3f1 100644
--- a/nginx.logrotate
+++ b/nginx.logrotate
@@ -1,5 +1,5 @@
 /var/log/nginx/*log {
-    create 0644 nginx root
+    create 0644 nginx nginx
     daily
     rotate 10
     missingok
diff --git a/nginx.spec b/nginx.spec
index 9ecccc0..8d72647 100644
--- a/nginx.spec
+++ b/nginx.spec
@@ -11,7 +11,7 @@
 Name:              nginx
 Epoch:             1
 Version:           1.0.15
-Release:           7%{?dist}
+Release:           8%{?dist}
 
 Summary:           A high performance web server and reverse proxy server
 Group:             System Environment/Daemons
@@ -221,6 +221,9 @@ fi
 
 
 %changelog
+* Wed Dec 19 2012 Jamie Nguyen <jamielinux at fedoraproject.org> - 1:1.0.15-8
+- use correct file ownership when rotating log files
+
 * Tue Dec 18 2012 Jamie Nguyen <jamielinux at fedoraproject.org> - 1:1.0.15-7
 - send correct kill signal and use correct file permissions when rotating
   log files (#888225)


More information about the scm-commits mailing list