Fix problem - cron.hourly, daily not running.

This commit is contained in:
Marcela Mašláňová 2007-09-25 08:33:58 +00:00
parent 611a38d23f
commit 41a79e2e0d
2 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,7 @@
Summary: Root crontab files used to schedule the execution of programs
Name: crontabs
Version: 1.10
Release: 17%{?dist}
Release: 18%{?dist}
License: Public Domain and GPLv2
Group: System Environment/Base
Source0: crontab
@ -50,6 +50,10 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) /etc/sysconfig/crontab
%changelog
* Tue Sep 25 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-18
- cron.{hourly, daily,...} run ok
- rhbz#296741
* Thu Aug 30 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-17
- better solution of configuration script

View File

@ -1,9 +1,4 @@
#!/bin/bash
# if cron.daily was run today
AUX1=`cat /var/spool/anacron/cron.daily`
AUX2=`date +%Y%m%d`
[ "$AUX1" == $AUX2 ] || exit 0
# run-parts - concept taken from Debian
# keep going when something fails