From 6f3757ab75bd500941dd5de3d212c68089966a06 Mon Sep 17 00:00:00 2001 From: John Dennis Date: Fri, 28 Dec 2007 16:17:01 +0000 Subject: [PATCH] clear the database if previous version less than 2.0 --- setroubleshoot.init | 1 + setroubleshoot.spec | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/setroubleshoot.init b/setroubleshoot.init index 62c54db..a016680 100755 --- a/setroubleshoot.init +++ b/setroubleshoot.init @@ -110,6 +110,7 @@ cleardb(){ [ $running == 1 ] && stop echo $"Clearing database" rm -f /var/lib/setroubleshoot/database.xml + rm -f /var/lib/setroubleshoot/audit_listener_database.xml [ $running == 1 ] && start return 0 } diff --git a/setroubleshoot.spec b/setroubleshoot.spec index b6c862d..3b56b58 100644 --- a/setroubleshoot.spec +++ b/setroubleshoot.spec @@ -1,7 +1,7 @@ Summary: Helps troubleshoot SELinux problems Name: setroubleshoot Version: 2.0.0 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ Group: Applications/System URL: https://hosted.fedoraproject.org/projects/setroubleshoot @@ -141,7 +141,7 @@ if [ $1 = 0 ]; then /sbin/chkconfig --del %{name} fi -%triggerpostun -- setroubleshoot <= 0.35-1 +%triggerpostun -- setroubleshoot < 2.0.0 /sbin/service %{name} cleardb %clean @@ -185,6 +185,9 @@ rm -rf %{buildroot} %attr(0755,root,root) /etc/rc.d/init.d/%{name} %changelog +* Fri Dec 28 2007 - 2.0.0-3 + - clear the previous database, it's not compatible with v2.0 + * Fri Dec 28 2007 - 2.0.0-2 - fix requires for plugins