fix commit script

This commit is contained in:
Ivana Varekova 2009-07-07 11:03:25 +00:00
parent 3b20174980
commit 01334d8760

View File

@ -1,7 +1,7 @@
Summary: A log file analysis program
Name: logwatch
Version: 7.3.6
Release: 45%{?dist}
Release: 46%{?dist}
License: MIT
Group: Applications/System
URL: http://www.logwatch.org/
@ -173,9 +173,9 @@ install -m 0755 -d %{buildroot}%{_sysconfdir}/cron.daily
cat > %{buildroot}/%{_sysconfdir}/cron.daily/0logwatch <<EOF
#!/bin/bash
DailyReport=`grep -e "^[[:space:]]*DailyReport[[:space:]]*=[[:space:]]*" /usr/share/logwatch/default.conf/logwatch.conf | head -n1 | sed -e "s|^\s*DailyReport\s*=\s*||"`
DailyReport=\`grep -e "^[[:space:]]*DailyReport[[:space:]]*=[[:space:]]*" /usr/share/logwatch/default.conf/logwatch.conf | head -n1 | sed -e "s|^\s*DailyReport\s*=\s*||"\`
if [ \$DailyReport != "No" ] && [ \$DailyReport != "no" ]
if [ "\$DailyReport" != "No" ] && [ "\$DailyReport" != "no" ]
then
logwatch
fi
@ -236,6 +236,9 @@ rm -rf %{buildroot}
%doc License project/CHANGES
%changelog
* Tue Jul 7 2009 Ivana Varekova <varekova@redhat.com> 7.3.6-16
- fix cron script
* Thu Jul 2 2009 Ivana Varekova <varekova@redhat.com> 7.3.6-45
- fix cron script