diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2009-09-25 16:17:52 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-09-25 12:58:47 -0400 |
commit | 95b9c3ea7ee21585db7e07a276e881b6c2349c74 (patch) | |
tree | 29ff72ec4c887e5e381cfa532b7e775468d8c09e /contrib | |
parent | 05315b44feaa9819e62f18477f2c6d20914eb7ce (diff) | |
download | sssd-95b9c3ea7ee21585db7e07a276e881b6c2349c74.tar.gz sssd-95b9c3ea7ee21585db7e07a276e881b6c2349c74.tar.xz sssd-95b9c3ea7ee21585db7e07a276e881b6c2349c74.zip |
Convert the example config to v2 format, upgrade config on update only
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/sssd.spec.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 771f1900a..5dc45d28d 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 |