- if grep -qF "http ALL= NOPASSWD: /sbin/iptables" /etc/sudoers ; then
- umask 227
- grep -v '^http ALL= NOPASSWD: /sbin/iptables$' /etc/sudoers \
- > /etc/sudoers.rpmnew-antihak
- mv -f /etc/sudoers.rpmnew-antihak /etc/sudoers
- fi
-
- %{apxs} -e -A -n antihak %{_libexecdir}/mod_antihak.so 1>&2
- if [ -f /var/lock/subsys/httpd ]; then
- /etc/rc.d/init.d/httpd restart 1>&2
+ if grep -qF "^http ALL= NOPASSWD: /sbin/iptables" /etc/sudoers ; then
+ sed -i -e '/^http ALL= NOPASSWD: /sbin/iptables$/d' /etc/sudoers