summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-09-25 00:32:50 +0200
committerStephen Gallagher <sgallagh@redhat.com>2009-09-25 09:03:29 -0400
commit3c02938a2643fdc8ff83d81400334172f0743823 (patch)
treeaf28ca96e9a4c777e638de892bdf6d61cbf9687c /contrib
parentfee6c6a4cb7f851bb757088dae9e0720ae073d3c (diff)
downloadsssd-3c02938a2643fdc8ff83d81400334172f0743823.tar.gz
sssd-3c02938a2643fdc8ff83d81400334172f0743823.tar.xz
sssd-3c02938a2643fdc8ff83d81400334172f0743823.zip
script to upgrade config to v2
Diffstat (limited to 'contrib')
-rw-r--r--contrib/sssd.spec.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index 786b2e9e0..87ee5a9d6 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -18,6 +18,7 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires: libldb = 0.9.3
Requires: libtdb >= 1.1.3
+Requires(post): python
Requires(preun): initscripts chkconfig
Requires(postun): /sbin/service
@@ -132,6 +133,8 @@ rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
/sbin/chkconfig --add %{servicename}
+# a one-time upgrade from confdb v1 to v2
+python %{_libexecdir}/%{servicename}/upgrade_config.py
%preun
if [ $1 = 0 ]; then
@@ -146,6 +149,9 @@ if [ $1 -ge 1 ] ; then
fi
%changelog
+* Fri Sep 25 2009 Stephen Gallagher <sgallagh@redhat.com> - 0.6.0-0
+- Convert to new config file format
+
* Wed Sep 02 2009 Stephen Gallagher <sgallagh@redhat.com> - 0.5.0-0
- New upstream release 0.5.0