/[smecontribs]/rpms/smeserver-coova-chilli/contribs9/smeserver-coova-chilli-0.3-dnsfix.patch
ViewVC logotype

Contents of /rpms/smeserver-coova-chilli/contribs9/smeserver-coova-chilli-0.3-dnsfix.patch

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


Revision 1.1 - (show annotations) (download)
Tue Jul 5 12:33:26 2016 UTC (8 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-coova-chilli-0_3-4_el6_sme, HEAD
* Tue Jul 05 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.3-4.sme
- fix old dns default are not available [SME: 9514]

1 diff -Nur smeserver-coova-chilli-0.3.old/root/etc/e-smith/db/configuration/defaults/chilli/dns1 smeserver-coova-chilli-0.3/root/etc/e-smith/db/configuration/defaults/chilli/dns1
2 --- smeserver-coova-chilli-0.3.old/root/etc/e-smith/db/configuration/defaults/chilli/dns1 2008-09-02 07:27:59.000000000 -0400
3 +++ smeserver-coova-chilli-0.3/root/etc/e-smith/db/configuration/defaults/chilli/dns1 2016-07-05 08:20:09.792000000 -0400
4 @@ -1 +1 @@
5 -212.73.209.226
6 +8.8.8.8
7 diff -Nur smeserver-coova-chilli-0.3.old/root/etc/e-smith/db/configuration/defaults/chilli/dns2 smeserver-coova-chilli-0.3/root/etc/e-smith/db/configuration/defaults/chilli/dns2
8 --- smeserver-coova-chilli-0.3.old/root/etc/e-smith/db/configuration/defaults/chilli/dns2 2008-09-02 07:27:59.000000000 -0400
9 +++ smeserver-coova-chilli-0.3/root/etc/e-smith/db/configuration/defaults/chilli/dns2 2016-07-05 08:20:31.210000000 -0400
10 @@ -1 +1 @@
11 -194.206.120.1
12 +8.8.4.4
13 \ No newline at end of file
14 diff -Nur smeserver-coova-chilli-0.3.old/root/etc/e-smith/db/configuration/migrate/60Chilli smeserver-coova-chilli-0.3/root/etc/e-smith/db/configuration/migrate/60Chilli
15 --- smeserver-coova-chilli-0.3.old/root/etc/e-smith/db/configuration/migrate/60Chilli 2016-05-13 06:37:39.000000000 -0400
16 +++ smeserver-coova-chilli-0.3/root/etc/e-smith/db/configuration/migrate/60Chilli 2016-07-05 08:29:20.151000000 -0400
17 @@ -6,6 +6,11 @@
18 $pass=`/usr/bin/openssl rand -base64 60 | tr -c -d '[:graph:]'`;
19 $chilliconf->set_prop('uamsecret',$pass);
20 }
21 -
22 + # change default dns server as they are not available anymore
23 + # new default is google
24 + my $dns1 = $chilliconf->prop('dns1') || '212.73.209.226';
25 + my $dns2 = $chilliconf->prop('dns2') || '194.206.120.1';
26 + $chilliconf->set_prop('dns1','8.8.8.8') if $dns1 eq '212.73.209.226';
27 + $chilliconf->set_prop('dns2','8.8.4.4') if $dns2 eq '194.206.120.1';
28 }
29

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