/[smeserver]/rpms/e-smith-base/sme10/e-smith-base-5.8.0-enable_smartd.patch
ViewVC logotype

Annotation of /rpms/e-smith-base/sme10/e-smith-base-5.8.0-enable_smartd.patch

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


Revision 1.2 - (hide annotations) (download)
Sat May 23 05:31:29 2020 UTC (4 years, 5 months ago) by jpp
Branch: MAIN
CVS Tags: e-smith-base-5_8_0-71_el7_sme, e-smith-base-5_8_0-67_el7_sme, e-smith-base-5_8_0-64_el7_sme, e-smith-base-5_8_0-69_el7_sme, e-smith-base-5_8_0-70_el7_sme, e-smith-base-5_8_0-60_el7_sme, e-smith-base-5_8_0-65_el7_sme, e-smith-base-5_8_0-83_el7_sme, e-smith-base-5_8_0-96_el7_sme, e-smith-base-5_8_0-95_el7_sme, e-smith-base-5_8_0-80_el7_sme, e-smith-base-5_8_0-85_el7_sme, e-smith-base-5_8_0-50_el7_sme, e-smith-base-5_8_0-81_el7_sme, e-smith-base-5_8_0-82_el7_sme, e-smith-base-5_8_0-88_el7_sme, e-smith-base-5_8_0-54_el7_sme, e-smith-base-5_8_0-99_el7_sme, e-smith-base-5_8_0-94_el7_sme, e-smith-base-5_8_0-98_el7_sme, e-smith-base-5_8_0-97_el7_sme, e-smith-base-5_8_0-92_el7_sme, e-smith-base-5_8_0-75_el7_sme, e-smith-base-5_8_0-78_el7_sme, e-smith-base-5_8_0-90_el7_sme, e-smith-base-5_8_0-93_el7_sme, e-smith-base-5_8_0-55_el7_sme, e-smith-base-5_8_0-61_el7_sme, e-smith-base-5_8_0-52_el7_sme, e-smith-base-5_8_0-46_el7_sme, e-smith-base-5_8_0-62_el7_sme, e-smith-base-5_8_0-74_el7_sme, e-smith-base-5_8_0-77_el7_sme, e-smith-base-5_8_0-63_el7_sme, e-smith-base-5_8_0-73_el7_sme, e-smith-base-5_8_0-76_el7_sme, e-smith-base-5_8_0-79_el7_sme, e-smith-base-5_8_0-91_el7_sme, e-smith-base-5_8_0-58_el7_sme, e-smith-base-5_8_0-86_el7_sme, e-smith-base-5_8_0-47_el7_sme, e-smith-base-5_8_0-59_el7_sme, e-smith-base-5_8_0-87_el7_sme, e-smith-base-5_8_0-53_el7_sme, e-smith-base-5_8_0-44_el7_sme, e-smith-base-5_8_0-43_el7_sme, e-smith-base-5_8_0-49_el7_sme, e-smith-base-5_8_0-48_el7_sme, e-smith-base-5_8_0-66_el7_sme, e-smith-base-5_8_0-68_el7_sme, e-smith-base-5_8_0-45_el7_sme, e-smith-base-5_8_0-72_el7_sme, e-smith-base-5_8_0-84_el7_sme, e-smith-base-5_8_0-89_el7_sme, e-smith-base-5_8_0-51_el7_sme
Changes since 1.1: +26 -0 lines
* Sat May 23 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-43.sme
- enable smartd for existing installation [SME: 5890]

1 chrissn 1.1 diff -urN e-smith-base-5.8.0.old/root/etc/e-smith/db/configuration/defaults/smartd/status e-smith-base-5.8.0/root/etc/e-smith/db/configuration/defaults/smartd/status
2     --- e-smith-base-5.8.0.old/root/etc/e-smith/db/configuration/defaults/smartd/status 2008-03-26 16:49:00.000000000 +0000
3     +++ e-smith-base-5.8.0/root/etc/e-smith/db/configuration/defaults/smartd/status 2020-05-14 22:43:00.347561571 +0100
4     @@ -1 +1 @@
5     -disabled
6     +enabled
7 jpp 1.2 diff -Nur e-smith-base-5.8.0.old/root/etc/e-smith/db/configuration/migrate/smartd e-smith-base-5.8.0/root/etc/e-smith/db/configuration/migrate/smartd
8     --- e-smith-base-5.8.0.old/root/etc/e-smith/db/configuration/migrate/smartd 1969-12-31 19:00:00.000000000 -0500
9     +++ e-smith-base-5.8.0/root/etc/e-smith/db/configuration/migrate/smartd 2020-05-23 01:27:29.718000000 -0400
10     @@ -0,0 +1,12 @@
11     +{
12     +# set status as enabled starting SME10
13     +# remove the -m option from the property email
14     +
15     + my $email = $DB->get_prop('smartd','email') or return;
16     +
17     + if ($email =~ /^-m (.*)$/)
18     + {
19     + $DB->set_prop('smartd','email', $1);
20     + $DB->set_prop('smartd','status', 'enabled');
21     + }
22     +}
23     diff -Nur e-smith-base-5.8.0.old/root/etc/e-smith/templates/etc/smartd.conf/10conf e-smith-base-5.8.0/root/etc/e-smith/templates/etc/smartd.conf/10conf
24     --- e-smith-base-5.8.0.old/root/etc/e-smith/templates/etc/smartd.conf/10conf 2008-03-26 12:49:00.000000000 -0400
25     +++ e-smith-base-5.8.0/root/etc/e-smith/templates/etc/smartd.conf/10conf 2020-05-23 01:27:58.796000000 -0400
26     @@ -4,5 +4,5 @@
27     # Sample configuration file for smartd. See man 5 smartd.conf.
28     # Home page is: http://smartmontools.sourceforge.net
29    
30     -"DEVICESCAN -a $smartd{email} $smartd{directive} -I 190 -I 194";
31     +"DEVICESCAN -a -m $smartd{email} $smartd{directive} -I 190 -I 194";
32     }

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