/[smecontribs]/rpms/smeserver-xt_geoip/contribs9/smeserver-xt_geoip-1.0.1-bz10789-more_services.patch
ViewVC logotype

Annotation of /rpms/smeserver-xt_geoip/contribs9/smeserver-xt_geoip-1.0.1-bz10789-more_services.patch

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


Revision 1.1 - (hide annotations) (download)
Sat Sep 21 19:37:59 2019 UTC (5 years, 1 month ago) by jpp
Branch: MAIN
CVS Tags: smeserver-xt_geoip-1_0_1-18_el6_sme, smeserver-xt_geoip-1_0_1-20_el6_sme, smeserver-xt_geoip-1_0_1-24_el6_sme, smeserver-xt_geoip-1_0_1-23_el6_sme, smeserver-xt_geoip-1_0_1-26_el6_sme, smeserver-xt_geoip-1_0_1-25_el6_sme, smeserver-xt_geoip-1_0_1-22_el6_sme, smeserver-xt_geoip-1_0_1-21_el6_sme, smeserver-xt_geoip-1_0_1-19_el6_sme, HEAD
* Sat Sep 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-18.sme
- add more service [SME: 10789]
- no email from log analysis by default [SME: 10797]

1 jpp 1.1 diff -Nur smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/db/configuration/migrate/20xt_geoip smeserver-xt_geoip-1.0.1/root/etc/e-smith/db/configuration/migrate/20xt_geoip
2     --- smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/db/configuration/migrate/20xt_geoip 1969-12-31 19:00:00.000000000 -0500
3     +++ smeserver-xt_geoip-1.0.1/root/etc/e-smith/db/configuration/migrate/20xt_geoip 2019-09-21 12:16:20.521000000 -0400
4     @@ -0,0 +1,20 @@
5     +{
6     +my @addexclude = split(/,/,"imap,imaps,pop3,pop3s,pptpd,sshd,ftp,smtpd,ssmtpd");
7     +my $masq = $DB->get('masq') or return;
8     +
9     +my @exclude = split(/,/, $masq->prop('XtServices') || '');
10     +push @exclude, @addexclude;
11     +# remove duplicates
12     +undef %saw;
13     +@exclude = grep(!$saw{$_}++, @exclude);
14     +if ($#exclude > 0)
15     + {
16     + $masq->set_prop('XtServices', join(',', @exclude));
17     +
18     + }
19     +else
20     + {
21     + $masq->delete_prop('XtServices');
22     + }
23     +}
24     +

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