/[smecontribs]/rpms/smeserver-bandwidthd/contribs9/smeserver-bandwidthd-2.0.1.2-8536.patch
ViewVC logotype

Contents of /rpms/smeserver-bandwidthd/contribs9/smeserver-bandwidthd-2.0.1.2-8536.patch

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


Revision 1.1 - (show annotations) (download)
Thu Dec 15 21:31:02 2016 UTC (7 years, 11 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-bandwidthd-2_0_1_2-6_el6_sme
* Thu Dec 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.1.2-6.sme
- fix one more time too verbose cronjob and unique IP networks [SME: 8536]

1 diff -Nur smeserver-bandwidthd-2.0.1.2.old/root/etc/cron.d/bandwidthd_mysql_purge smeserver-bandwidthd-2.0.1.2/root/etc/cron.d/bandwidthd_mysql_purge
2 --- smeserver-bandwidthd-2.0.1.2.old/root/etc/cron.d/bandwidthd_mysql_purge 2016-12-15 16:06:35.616000000 -0500
3 +++ smeserver-bandwidthd-2.0.1.2/root/etc/cron.d/bandwidthd_mysql_purge 2016-12-15 16:07:44.826000000 -0500
4 @@ -1 +1 @@
5 -5 5 * * 4 root /bin/sh /usr/share/doc/bandwidthd-2.0.1.1/phphtdocs/bd_mysql_purge.sh |mysql `/sbin/e-smith/db configuration getprop bandwidthd DbName`|grep -v 'status OK'
6 +5 5 * * 4 root /bin/sh /usr/share/doc/bandwidthd-2.0.1.1/phphtdocs/bd_mysql_purge.sh |mysql `/sbin/e-smith/db configuration getprop bandwidthd DbName`|grep -vE '(Msg_text|already up to date|status OK)'
7 diff -Nur smeserver-bandwidthd-2.0.1.2.old/root/etc/e-smith/templates/etc/bandwidthd.conf/07subnet smeserver-bandwidthd-2.0.1.2/root/etc/e-smith/templates/etc/bandwidthd.conf/07subnet
8 --- smeserver-bandwidthd-2.0.1.2.old/root/etc/e-smith/templates/etc/bandwidthd.conf/07subnet 2016-12-15 16:06:35.618000000 -0500
9 +++ smeserver-bandwidthd-2.0.1.2/root/etc/e-smith/templates/etc/bandwidthd.conf/07subnet 2016-12-15 16:21:01.445000000 -0500
10 @@ -14,9 +14,9 @@
11
12 foreach $rec (@LocalAccess)
13 {
14 - $OUT .= "subnet $rec \n"
15 - unless $rec eq "127.0.0.1";
16 -
17 + next if $rec eq "127.0.0.1";
18 + $rec= ($rec=~ /[.\d]+ [.\d]+/ )? $rec : "$rec 255.255.255.255";
19 + $OUT .= "subnet $rec \n";
20 }
21
22 #$OUT .= "subnet $localAccess \n";

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