From 168d056cf8ed073e17f008b9109ad3d37e63f172 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 3 Jul 2013 21:38:45 -0700 Subject: Add conditional chkconfig to packaging Unconditionally exit with zero to avoid returning failures from the scriptlets. This should have been part of the previous ba661a6 commit. Signed-off-by: Brian Behlendorf Closes #1376 --- rpm/generic/zfs.spec.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 77f217dbe..c832404a6 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -116,11 +116,13 @@ find %{?buildroot}%{_libdir} -name '*.la' -exec rm -f {} \; %post /sbin/ldconfig [ -x /sbin/chkconfig ] && /sbin/chkconfig --add zfs +exit 0 %preun if [ $1 -eq 0 ] ; then [ -x /sbin/chkconfig ] && /sbin/chkconfig --del zfs fi +exit 0 %postun -p /sbin/ldconfig -- cgit v1.2.3