clear the database if previous version less than 2.0
This commit is contained in:
parent
8ffc8418df
commit
6f3757ab75
@ -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
|
||||
}
|
||||
|
@ -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 <jdennis@redhat.com> - 2.0.0-3
|
||||
- clear the previous database, it's not compatible with v2.0
|
||||
|
||||
* Fri Dec 28 2007 <jdennis@redhat.com> - 2.0.0-2
|
||||
- fix requires for plugins
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user