/[smeserver]/rpms/smeserver-yum/sme7/smeserver-yum-1.2.0-check4updates.patch
ViewVC logotype

Contents of /rpms/smeserver-yum/sme7/smeserver-yum-1.2.0-check4updates.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Jan 7 21:52:11 2008 UTC (16 years, 5 months ago) by bytegw
Branch: MAIN
CVS Tags: smeserver-yum-1_2_0-54_el4_sme, smeserver-yum-1_2_0-57_el4_sme, smeserver-yum-1_2_0-50_el4_sme, smeserver-yum-1_2_0-55_el4_sme, smeserver-yum-1_2_0-53_el4_sme, smeserver-yum-1_2_0-58_el4_sme, smeserver-yum-1_2_0-56_el4_sme, smeserver-yum-1_2_0-46_el4_sme, smeserver-yum-1_2_0-48_el4_sme, smeserver-yum-1_2_0-51_el4_sme, smeserver-yum-1_2_0-45_el4_sme, smeserver-yum-1_2_0-47_el4_sme, smeserver-yum-1_2_0-49_el4_sme, smeserver-yum-1_2_0-44_el4_sme
Updates

1 diff -Nur -x '*.orig' -x '*.rej' smeserver-yum-1.2.0/createlinks mezzanine_patched_smeserver-yum-1.2.0/createlinks
2 --- smeserver-yum-1.2.0/createlinks 2008-01-07 03:32:53.000000000 -0700
3 +++ mezzanine_patched_smeserver-yum-1.2.0/createlinks 2008-01-07 03:31:47.000000000 -0700
4 @@ -4,11 +4,10 @@
5 use File::Basename;
6 use File::Path;
7
8 -templates2events("/etc/yum.conf",
9 - qw(
10 - yum-modify
11 - bootstrap-console-save
12 - ));
13 +foreach my $file (qw(/etc/crontab /etc/yum.conf))
14 +{
15 + templates2events($file, qw(yum-modify bootstrap-console-save));
16 +}
17
18 for ( qw(install remove update) )
19 {
20 diff -Nur -x '*.orig' -x '*.rej' smeserver-yum-1.2.0/root/etc/e-smith/templates/etc/crontab/check4updates mezzanine_patched_smeserver-yum-1.2.0/root/etc/e-smith/templates/etc/crontab/check4updates
21 --- smeserver-yum-1.2.0/root/etc/e-smith/templates/etc/crontab/check4updates 1969-12-31 17:00:00.000000000 -0700
22 +++ mezzanine_patched_smeserver-yum-1.2.0/root/etc/e-smith/templates/etc/crontab/check4updates 2008-01-07 03:23:06.000000000 -0700
23 @@ -0,0 +1,16 @@
24 +{
25 + return "\n# yum check for updates is disabled\n" unless $yum{status} eq 'enabled';
26 +
27 + my $freq = $yum{check4updates} || 'daily';
28 + my $min = int(rand(60));
29 + my $hour = int(rand(5));
30 + my $dow = substr(localtime,0,3);
31 +
32 + if ($freq eq 'weekly') {
33 + return "\n$min $hour * * $dow root check4updates -m\n";
34 + } elsif ($freq eq 'monthly') {
35 + return "\n$min $hour 15 * * root check4updates -m\n";
36 + } else {
37 + return "\n$min $hour * * * root check4updates -m\n"
38 + }
39 +}

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed