ports/security/ossec-hids-local-config/files/pkg-deinstall.in
Kurt Jaeger b747f9fc07 security/ossec-hids: upgrade 3.1.0 -> 3.3.0
security/ossec-hids-local: upgrade 3.1.0 -> 3.3.0
security/ossec-hids-local-config: upgrade 3.1.0 -> 3.3.0

- Added LUA option. Bundled Lua support is no longer compiled in by default

PR:		237632
Submitted by:	Dominik Lisiak <dominik.lisiak@bemsoft.pl> (maintainer)
Relnotes:	https://github.com/ossec/ossec-hids/releases/tag/3.3.0
		https://github.com/ossec/ossec-hids/releases/tag/3.2.0
2019-06-01 19:39:09 +00:00

19 lines
478 B
Bash

#!/bin/sh
ossec_home="%%OSSEC_HOME%%"
fw_drop="%%FW_DROP%%"
ar_bin_dir="${ossec_home}/active-response/bin"
ossec_conf="${ossec_home}/etc/ossec.conf"
agent_conf="${ossec_home}/etc/shared/agent.conf"
if [ "$2" == "DEINSTALL" ]; then
rm -f "${ossec_conf}"
rm -f "${agent_conf}"
if [ -n "${fw_drop}" ]; then
if [ "${ar_bin_dir}/${fw_drop}" -ef "${ar_bin_dir}/firewall-drop.sh" ]; then
rm -f "${ar_bin_dir}/firewall-drop.sh"
fi
fi
fi