version 1.5, 2006/10/05 21:11:25
|
version 1.7, 2007/04/23 20:04:52
|
Line 39 to LON-CAPA systems. distprobe is used t
|
Line 39 to LON-CAPA systems. distprobe is used t
|
|
|
The utility which is used to complete the check depends on the distro: |
The utility which is used to complete the check depends on the distro: |
|
|
fedora - yum |
fedora, rhel 5/5+ - yum |
suse 9.X and sles9 - you |
suse 9.X and sles9 - you |
suse 10.X and sles10 - rug |
suse 10.X and sles10 - rug |
rhel 4 - up2date |
rhel 4 - up2date |
Line 80 if ($distro =~ /^fedora\d+$/) {
|
Line 80 if ($distro =~ /^fedora\d+$/) {
|
$cmd = 'yum update'; |
$cmd = 'yum update'; |
&prepare_msg($tmpfile,$cmd); |
&prepare_msg($tmpfile,$cmd); |
($send,$addsubj) = &check_with_yum($tmpfile); |
($send,$addsubj) = &check_with_yum($tmpfile); |
} elsif ($distro =~ /^(suse|sles)9\.\d$/) { |
} elsif ($distro =~ /^(suse|sles)9\.?\d?$/) { |
$cmd = 'you'; |
$cmd = 'you'; |
&prepare_msg($tmpfile,$cmd); |
&prepare_msg($tmpfile,$cmd); |
($send,$addsubj) = &check_with_you($tmpfile); |
($send,$addsubj) = &check_with_you($tmpfile); |
Line 88 if ($distro =~ /^fedora\d+$/) {
|
Line 88 if ($distro =~ /^fedora\d+$/) {
|
$cmd = 'rug up'; |
$cmd = 'rug up'; |
&prepare_msg($tmpfile,$cmd); |
&prepare_msg($tmpfile,$cmd); |
($send,$addsubj) = &check_with_rug($tmpfile); |
($send,$addsubj) = &check_with_rug($tmpfile); |
} elsif ($distro =~ /^rhes4$/) { |
} elsif ($distro =~ /^rhes(\d+)$/) { |
$cmd ='up2date -u --nox'; |
my $version = $1; |
&prepare_msg($tmpfile,$cmd); |
if ($version == 4) { |
($send,$addsubj) = &check_with_up2date($tmpfile); |
$cmd ='up2date -u --nox'; |
|
&prepare_msg($tmpfile,$cmd); |
|
($send,$addsubj) = &check_with_up2date($tmpfile); |
|
} elsif ($version > 4) { |
|
$cmd = 'yum update'; |
|
&prepare_msg($tmpfile,$cmd); |
|
($send,$addsubj) = &check_with_yum($tmpfile); |
|
} |
} else { |
} else { |
$cmd = '/usr/local/bin/check-rpms --update'; |
$cmd = '/usr/local/bin/check-rpms --update'; |
($send,$addsubj) = &check_with_checkrpms($tmpfile); |
($send,$addsubj) = &check_with_checkrpms($tmpfile); |