logs need to have correct permissions
This commit is contained in:
parent
769585d165
commit
cbcd84d292
@ -15,7 +15,7 @@ Summary: CUPS printing system
|
|||||||
Name: cups
|
Name: cups
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.2.8
|
Version: 2.2.8
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
License: GPLv2+ and LGPLv2+ with exceptions and AML
|
License: GPLv2+ and LGPLv2+ with exceptions and AML
|
||||||
Url: http://www.cups.org/
|
Url: http://www.cups.org/
|
||||||
Source0: https://github.com/apple/cups/releases/download/v%{VERSION}/cups-%{VERSION}-source.tar.gz
|
Source0: https://github.com/apple/cups/releases/download/v%{VERSION}/cups-%{VERSION}-source.tar.gz
|
||||||
@ -534,6 +534,8 @@ do
|
|||||||
if [ ! -f %{_localstatedir}/log/cups/${lognames[i]} ]
|
if [ ! -f %{_localstatedir}/log/cups/${lognames[i]} ]
|
||||||
then
|
then
|
||||||
%{_bindir}/touch %{_localstatedir}/log/cups/${lognames[i]} || :
|
%{_bindir}/touch %{_localstatedir}/log/cups/${lognames[i]} || :
|
||||||
|
%{_bindir}/chown root:lp %{_localstatedir}/log/cups/${lognames[i]} || :
|
||||||
|
%{_bindir}/chmod 600 %{_localstatedir}/log/cups/${lognames[i]} || :
|
||||||
fi
|
fi
|
||||||
lastmessage=`%{_bindir}/tail -n 1 %{_localstatedir}/log/cups/${lognames[i]} | grep "$message"`
|
lastmessage=`%{_bindir}/tail -n 1 %{_localstatedir}/log/cups/${lognames[i]} | grep "$message"`
|
||||||
if [ -z "$lastmessage" ]
|
if [ -z "$lastmessage" ]
|
||||||
@ -755,6 +757,9 @@ rm -f %{cups_serverbin}/backend/smb
|
|||||||
%{_mandir}/man5/ipptoolfile.5.gz
|
%{_mandir}/man5/ipptoolfile.5.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Dec 13 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.2.8-9
|
||||||
|
- logs need to have correct permissions
|
||||||
|
|
||||||
* Wed Dec 12 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.2.8-8
|
* Wed Dec 12 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.2.8-8
|
||||||
- 1658673 - Main index.html of web interface doesn't get installed when not installing documentation
|
- 1658673 - Main index.html of web interface doesn't get installed when not installing documentation
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user