/[smeserver]/rpms/e-smith-base/sme8/e-smith-base-5.2.0-OldSystemName.patch
ViewVC logotype

Annotation of /rpms/e-smith-base/sme8/e-smith-base-5.2.0-OldSystemName.patch

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


Revision 1.1 - (hide annotations) (download)
Tue Jun 25 05:06:26 2013 UTC (11 years ago) by wellsi
Branch: MAIN
CVS Tags: e-smith-base-5_2_0-80_el5_sme, e-smith-base-5_2_0-85_el5_sme, e-smith-base-5_2_0-86_el5_sme, e-smith-base-5_2_0-83_el5_sme, e-smith-base-5_2_0-84_el5_sme, e-smith-base-5_2_0-88_el5_sme, e-smith-base-5_2_0-81_el5_sme, e-smith-base-5_2_0-82_el5_sme, e-smith-base-5_2_0-89_el5_sme, e-smith-base-5_2_0-79_el5_sme, e-smith-base-5_2_0-90_el5_sme, e-smith-base-5_2_0-87_el5_sme
* Mon Jun 24 2013 Ian Wells <esmith@wellsi.com> 5.2.0-79.sme
- Remove old System Name from the Hosts DB, by Charlie Brady [SME: 5010]

1 wellsi 1.1 diff -ruN e-smith-base-5.2.0.old/root/usr/lib/perl5/site_perl/esmith/console/configure.pm e-smith-base-5.2.0/root/usr/lib/perl5/site_perl/esmith/console/configure.pm
2     --- e-smith-base-5.2.0.old/root/usr/lib/perl5/site_perl/esmith/console/configure.pm 2013-06-24 18:39:49.000000000 -0700
3     +++ e-smith-base-5.2.0/root/usr/lib/perl5/site_perl/esmith/console/configure.pm 2013-06-24 18:43:57.000000000 -0700
4     @@ -251,6 +251,14 @@
5     if ($choice =~ /^([a-zA-Z][a-zA-Z0-9\-]*)$/)
6     {
7     $db->set_value('SystemName', $SystemName = lc($1));
8     + if ($oldSystemName ne $SystemName)
9     + {
10     + # Delete old static hosts db record if one exists
11     + use esmith::HostsDB;
12     + my $hdb = esmith::HostsDB->open;
13     + my $rec = $hdb->get("$oldSystemName.$DomainName");
14     + $rec->delete if $rec;
15     + }
16     goto ETHERNET_LOCAL;
17    
18     }

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