diff options
author | ndarshan <dnarayan@redhat.com> | 2014-07-01 15:18:56 +0530 |
---|---|---|
committer | Sahina Bose <sabose@redhat.com> | 2014-07-01 03:56:48 -0700 |
commit | fac29c8663705e92e411fcc69a6a79d13a9a0921 (patch) | |
tree | bd71e27131348f7f9addbf643958413b6eee9852 /gluster-nagios-addons.spec.in | |
parent | dcb15dc1e6bda61611f7fd32c1e064fb85951d42 (diff) |
gluster-nagios-addons: Removed iptables modification.
Removed addition of nrpe port to iptables and restarting
of iptables from spec file as Its better to leave this
task to sys admin.
Change-Id: I3e86c1af6d5aefd7fed99a00c02ce7d5534e83ce
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1110719
Signed-off-by: ndarshan <dnarayan@redhat.com>
Reviewed-on: http://review.gluster.org/8212
Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'gluster-nagios-addons.spec.in')
-rw-r--r-- | gluster-nagios-addons.spec.in | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/gluster-nagios-addons.spec.in b/gluster-nagios-addons.spec.in index 58f625c..f723058 100644 --- a/gluster-nagios-addons.spec.in +++ b/gluster-nagios-addons.spec.in @@ -123,17 +123,6 @@ rm -rf %{buildroot} %post -%if ( 0%{?_with_firewalld:1} ) -/bin/firewall-cmd --permanent --add-port=5666/tcp -/bin/firewall-cmd --add-port=5666/tcp -%else -/sbin/iptables -I INPUT 1 -p tcp --dport 5666 -j ACCEPT -/sbin/service iptables save -if [ "$1" -eq 2 ]; then - # called at rpm upgrade - %_init_try_restart iptables -fi -%endif if grep -q "dont_blame_nrpe=0" %{_sysconfdir}/nagios/nrpe.cfg ; then sed -i -e 's/dont_blame_nrpe=0/dont_blame_nrpe=1/g' %{_sysconfdir}/nagios/nrpe.cfg |