Add conditional chkconfig to packaging
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 4 Jul 2013 04:38:45 +0000 (21:38 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 4 Jul 2013 04:56:05 +0000 (21:56 -0700)
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 <behlendorf1@llnl.gov>
Closes #1376

rpm/generic/zfs.spec.in

index 77f217d..c832404 100644 (file)
@@ -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