]> git.pld-linux.org Git - packages/php.git/commitdiff
add su directive for logrotate 3.8.0
authorElan Ruusamäe <glen@delfi.ee>
Mon, 4 Mar 2013 08:34:17 +0000 (10:34 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 2 Apr 2013 08:27:09 +0000 (11:27 +0300)
php-fpm.logrotate
php.spec

index 24172c6c7f9690b55cec533180638816a649ebbe..3e4c2304be72bcc519b2c45ec99ec6d83c30193c 100644 (file)
@@ -1,5 +1,6 @@
 /var/log/php/@processname@.log
 {
+       su root http
        notifempty
        missingok
        create 600 root root
index 280d0ff3e66d88982a21a1dd51e5d9224635fb02..d148be527d37826e6ad986b5fcf512f84fab2495 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -439,6 +439,9 @@ Provides:   php(cgi)
 Provides:      php(fcgi)
 Provides:      webserver(php) = %{version}
 Obsoletes:     php-fcgi < 4:5.3.0
+%if "%{pld_release}" != "ac"
+Conflicts:     logrotate < 3.8.0
+%endif
 
 %description cgi
 PHP as CGI or FastCGI program.
@@ -2431,6 +2434,9 @@ install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
 install -d $RPM_BUILD_ROOT/etc/logrotate.d
 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
+%if "%{pld_release}" == "ac"
+%{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
+%endif
 
 %{__sed} -i -e '
        s#/usr/lib/php#%{php_extensiondir}#
This page took 0.355085 seconds and 4 git commands to generate.