1 |
wellsi |
1.1 |
diff -ruN e-smith-samba-2.4.0.old/root/etc/e-smith/db/configuration/migrate/30smbServerName e-smith-samba-2.4.0/root/etc/e-smith/db/configuration/migrate/30smbServerName |
2 |
|
|
--- e-smith-samba-2.4.0.old/root/etc/e-smith/db/configuration/migrate/30smbServerName 2013-01-31 13:31:40.000000000 -0800 |
3 |
|
|
+++ e-smith-samba-2.4.0/root/etc/e-smith/db/configuration/migrate/30smbServerName 2013-05-21 21:47:17.000000000 -0700 |
4 |
|
|
@@ -1,8 +1,9 @@ |
5 |
|
|
{ |
6 |
|
|
+# Set ServerName to SystemName after inital configuration. |
7 |
|
|
my $smb = $DB->get('smb') || return; |
8 |
|
|
- my $srvName = $smb->prop('ServerName') || 'e-smith-server'; |
9 |
|
|
+ my $srvName = $smb->prop('ServerName') || 'sme-server'; |
10 |
|
|
my $sysName = $DB->get('SystemName') || return; |
11 |
|
|
|
12 |
|
|
- return unless $srvName =~ m#mitel-networks|mitel-networks-server|mitel-server|e-smith-server#; |
13 |
|
|
+ return unless $srvName =~ m#sme-server#; |
14 |
|
|
$smb->set_prop('ServerName', $sysName->value); |
15 |
|
|
} |