/[smeserver]/rpms/e-smith-base/sme9/e-smith-base-5.4.0-set_servername.patch
ViewVC logotype

Annotation of /rpms/e-smith-base/sme9/e-smith-base-5.4.0-set_servername.patch

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


Revision 1.1 - (hide annotations) (download)
Sun Dec 15 00:54:07 2013 UTC (10 years, 11 months ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-base-5_4_0-62_el6_sme, e-smith-base-5_4_0-56_el6_sme, e-smith-base-5_4_0-55_el6_sme, e-smith-base-5_4_0-57_el6_sme, e-smith-base-5_4_0-54_el6_sme, e-smith-base-5_4_0-61_el6_sme, e-smith-base-5_4_0-60_el6_sme, e-smith-base-5_4_0-58_el6_sme, e-smith-base-5_4_0-59_el6_sme
* Sun Dec 15 2013 Daniel Berteaud <daniel@firewall-services.com> 5.4.0-54.sme
- Set smb ServerName if unset (patch from Ian Wells) [SME: 8030]

1 vip-ire 1.1 diff -Nur e-smith-base-5.4.0/root/usr/share/perl5/vendor_perl/esmith/console/configure.pm e-smith-base-5.4.0_bz8030/root/usr/share/perl5/vendor_perl/esmith/console/configure.pm
2     --- e-smith-base-5.4.0/root/usr/share/perl5/vendor_perl/esmith/console/configure.pm 2013-12-15 01:30:54.703944618 +0100
3     +++ e-smith-base-5.4.0_bz8030/root/usr/share/perl5/vendor_perl/esmith/console/configure.pm 2013-12-15 01:35:07.201609871 +0100
4     @@ -257,9 +257,9 @@
5     my $rec = $hdb->get("$oldSystemName.$DomainName");
6     $rec->delete if $rec;
7    
8     - # Update ServerName if was oldSystemName
9     + # Update ServerName if was oldSystemName or not set
10     my $oldServerName = $db->get_prop("smb", "ServerName");
11     - if ($oldSystemName eq $oldServerName)
12     + if (!defined($oldServerName) || ($oldSystemName eq $oldServerName))
13     {
14     $db->set_prop("smb", "ServerName", $SystemName);
15     }

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