Use LANG=C for running jobs in correct order.

This commit is contained in:
Marcela Mašláňová 2008-06-09 13:49:11 +00:00
parent 3131b48abc
commit 9ed3703085
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
Summary: Root crontab files used to schedule the execution of programs Summary: Root crontab files used to schedule the execution of programs
Name: crontabs Name: crontabs
Version: 1.10 Version: 1.10
Release: 22%{?dist} Release: 23%{?dist}
License: Public Domain and GPLv2 License: Public Domain and GPLv2
Group: System Environment/Base Group: System Environment/Base
Source0: crontab Source0: crontab
@ -38,6 +38,9 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) /etc/sysconfig/crontab %config(noreplace) /etc/sysconfig/crontab
%changelog %changelog
* Mon Jun 9 2008 Marcela Maslanova <mmaslano@redhat.com> 1.10-23
- 450084 LANG=C is set up for running scripts
* Wed May 28 2008 Marcela Maslanova <mmaslano@redhat.com> 1.10-22 * Wed May 28 2008 Marcela Maslanova <mmaslano@redhat.com> 1.10-22
- remove scripts for delay, anacron now own most of the scripts. - remove scripts for delay, anacron now own most of the scripts.
Crontabs owns only run-parts, /etc/crontab and crontabs sysconfig. Crontabs owns only run-parts, /etc/crontab and crontabs sysconfig.

View File

@ -15,7 +15,7 @@ if [ ! -d $1 ]; then
fi fi
# Ignore *~ and *, scripts # Ignore *~ and *, scripts
for i in $1/*[^~,] ; do for i in $(LC_ALL=C; echo $1/*[^~,]) ; do
[ -d $i ] && continue [ -d $i ] && continue
# Don't run *.{rpmsave,rpmorig,rpmnew,swp,cfsaved} scripts # Don't run *.{rpmsave,rpmorig,rpmnew,swp,cfsaved} scripts
[ "${i%.cfsaved}" != "${i}" ] && continue [ "${i%.cfsaved}" != "${i}" ] && continue