[Pkg-ossec-devel] [pkg-ossec] 02/03: Removing logs and generated files while purging ossec-hids-agent.

Jose Antonio Quevedo Muñoz jaqm-guest at moszumanska.debian.org
Tue Mar 18 10:14:42 UTC 2014


This is an automated email from the git hooks/post-receive script.

jaqm-guest pushed a commit to branch master
in repository pkg-ossec.

commit 20635914944cf2d6591d0f1a16f420e3c5c29b22
Author: Jose Antonio Quevedo <joseantonio.quevedo at gmail.com>
Date:   Tue Mar 18 10:39:15 2014 +0100

    Removing logs and generated files while purging ossec-hids-agent.
---
 debian/ossec-hids-agent.postrm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debian/ossec-hids-agent.postrm b/debian/ossec-hids-agent.postrm
index 5e0d597..0500528 100644
--- a/debian/ossec-hids-agent.postrm
+++ b/debian/ossec-hids-agent.postrm
@@ -22,6 +22,12 @@ set -e
 case "$1" in
     purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
+	# Removing logs
+	rm -f /var/log/ossec/ossec-control.log /var/log/ossec/ossec.log
+
+	# Removing generated files
+	rm -f /var/lib/ossec/queue/alerts/execq
+
     ;;
 
     *)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ossec/pkg-ossec.git



More information about the Pkg-ossec-devel mailing list