From 95b9c3ea7ee21585db7e07a276e881b6c2349c74 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 25 Sep 2009 16:17:52 +0200 Subject: Convert the example config to v2 format, upgrade config on update only --- contrib/sssd.spec.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'contrib') diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 771f1900..5dc45d28 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -154,8 +154,10 @@ 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 +if [ $1 -ge 2 ] ; then +# a one-time upgrade from confdb v1 to v2, only if upgrading + python %{_libexecdir}/%{servicename}/upgrade_config.py +fi %preun if [ $1 = 0 ]; then -- cgit