/[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.2 - (show annotations) (download)
Tue Oct 7 14:47:50 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
FILE REMOVED
New streams

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